Skip to content

PythonQt.QtGui.QMdiArea · declarations 001

Back to PythonQt.QtGui.QMdiArea

ActivationHistoryOrder instance-attribute

ActivationHistoryOrder: Any

AreaOption instance-attribute

AreaOption: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

AreaOptions instance-attribute

AreaOptions: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

CreationOrder instance-attribute

CreationOrder: Any

DontMaximizeSubWindowOnActivation instance-attribute

DontMaximizeSubWindowOnActivation: Any

StackingOrder instance-attribute

StackingOrder: Any

SubWindowView instance-attribute

SubWindowView: Any

TabbedView instance-attribute

TabbedView: Any

WindowOrder instance-attribute

WindowOrder: type

int([x]) -> integer int(x, base=10) -> integer

Convert a number or string to an integer, or return 0 if no arguments are given. If x is a number, return x.int(). For floating point numbers, this truncates towards zero.

If x is not a number or if base is given, then x must be a string, bytes, or bytearray instance representing an integer literal in the given base. The literal can be preceded by '+' or '-' and be surrounded by whitespace. The base defaults to 10. Valid bases are 0 and 2-36. Base 0 means to interpret the base from the string as an integer literal.

int('0b100', base=0) 4

activateNextSubWindow

activateNextSubWindow() -> None

X.activateNextSubWindow()

Supplemental documentation: Qt 5 reference:

[slot] void QMdiArea::activateNextSubWindow()

Gives the keyboard focus to another window in the list of child windows. The window activated will be the next one determined by the current activation order.

See also activatePreviousSubWindow() and QMdiArea::WindowOrder.

Upstream PySide2 reference signatures (binding differences may apply):

activateNextSubWindow(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#activateNextSubWindow

activatePreviousSubWindow

activatePreviousSubWindow() -> None

X.activatePreviousSubWindow()

Supplemental documentation: Qt 5 reference:

[slot] void QMdiArea::activatePreviousSubWindow()

Gives the keyboard focus to another window in the list of child windows. The window activated will be the previous one determined by the current activation order.

See also activateNextSubWindow() and QMdiArea::WindowOrder.

Upstream PySide2 reference signatures (binding differences may apply):

activatePreviousSubWindow(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#activatePreviousSubWindow

activationOrder instance-attribute

activationOrder: Any

Qt 5 reference:

activationOrder : WindowOrder

This property holds the ordering criteria for subwindow lists

This property specifies the ordering criteria for the list of subwindows returned by subWindowList(). By default, it is the window creation order.

This property was introduced in Qt 4.4.

Access functions:

QMdiArea::WindowOrder activationOrder() const
void setActivationOrder(QMdiArea::WindowOrder order)

See also subWindowList().

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#activationOrder

activeSubWindow

activeSubWindow() -> Any

X.activeSubWindow() -> PythonQt.QtGui.QMdiSubWindow

Supplemental documentation: Qt 5 reference:

QMdiSubWindow *QMdiArea::activeSubWindow() const

Returns a pointer to the current active subwindow. If no window is currently active, nullptr is returned.

Subwindows are treated as top-level windows with respect to window state, i.e., if a widget outside the MDI area is the active window, no subwindow will be active. Note that if a widget in the window in which the MDI area lives gains focus, the window will be activated.

See also setActiveSubWindow() and Qt::WindowState.

Upstream PySide2 reference signatures (binding differences may apply):

activeSubWindow(self) -> PySide2.QtWidgets.QMdiSubWindow

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#activeSubWindow

addSubWindow

addSubWindow(widget: Any, arg1: flags) -> Any

X.addSubWindow(widget, flags) -> PythonQt.QtGui.QMdiSubWindow

Supplemental documentation: Qt 5 reference:

QMdiSubWindow *QMdiArea::addSubWindow(QWidget *widget, Qt::WindowFlags windowFlags \= Qt::WindowFlags())

Adds widget as a new subwindow to the MDI area. If windowFlags are non-zero, they will override the flags set on the widget.

The widget can be either a QMdiSubWindow or another QWidget (in which case the MDI area will create a subwindow and set the widget as the internal widget).

Note: Once the subwindow has been added, its parent will be the viewport widget of the QMdiArea.

    QMdiArea mdiArea;
    QMdiSubWindow *subWindow1 = new QMdiSubWindow;
    subWindow1->setWidget(internalWidget1);
    subWindow1->setAttribute(Qt::WA_DeleteOnClose);
    mdiArea.addSubWindow(subWindow1);

    QMdiSubWindow *subWindow2 =
        mdiArea.addSubWindow(internalWidget2);

When you create your own subwindow, you must set the Qt::WA_DeleteOnClose widget attribute if you want the window to be deleted when closed in the MDI area. If not, the window will be hidden and the MDI area will not activate the next subwindow.

Returns the QMdiSubWindow that is added to the MDI area.

See also removeSubWindow().

Upstream PySide2 reference signatures (binding differences may apply):

addSubWindow(self, widget: PySide2.QtWidgets.QWidget, flags: PySide2.QtCore.Qt.WindowFlags=...) -> PySide2.QtWidgets.QMdiSubWindow

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#addSubWindow

background instance-attribute

background: QBrush

Qt 5 reference:

background : QBrush

This property holds the background brush for the workspace

This property sets the background brush for the workspace area itself. By default, it is a gray color, but can be any brush (e.g., colors, gradients or pixmaps).

Access functions:

QBrush background() const
void setBackground(const QBrush \&background)

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#background

cascadeSubWindows

cascadeSubWindows() -> None

X.cascadeSubWindows()

Supplemental documentation: Qt 5 reference:

[slot] void QMdiArea::cascadeSubWindows()

Arranges all the child windows in a cascade pattern.

See also tileSubWindows().

Upstream PySide2 reference signatures (binding differences may apply):

cascadeSubWindows(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#cascadeSubWindows

childEvent

childEvent(childEvent: Any) -> None

X.childEvent(childEvent)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QMdiArea::childEvent(QChildEvent *childEvent)

Reimplements: QObject::childEvent(QChildEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

childEvent(self, childEvent: PySide2.QtCore.QChildEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#childEvent

closeActiveSubWindow

closeActiveSubWindow() -> None

X.closeActiveSubWindow()

Supplemental documentation: Qt 5 reference:

[slot] void QMdiArea::closeActiveSubWindow()

Closes the active subwindow.

See also closeAllSubWindows().

Upstream PySide2 reference signatures (binding differences may apply):

closeActiveSubWindow(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#closeActiveSubWindow

closeAllSubWindows

closeAllSubWindows() -> None

X.closeAllSubWindows()

Supplemental documentation: Qt 5 reference:

[slot] void QMdiArea::closeAllSubWindows()

Closes all subwindows by sending a QCloseEvent to each window. You may receive subWindowActivated() signals from subwindows before they are closed (if the MDI area activates the subwindow when another is closing).

Subwindows that ignore the close event will remain open.

See also closeActiveSubWindow().

Upstream PySide2 reference signatures (binding differences may apply):

closeAllSubWindows(self) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#closeAllSubWindows

currentSubWindow

currentSubWindow() -> Any

X.currentSubWindow() -> PythonQt.QtGui.QMdiSubWindow

Supplemental documentation: Qt 5 reference:

QMdiSubWindow *QMdiArea::currentSubWindow() const

Returns a pointer to the current subwindow, or nullptr if there is no current subwindow.

This function will return the same as activeSubWindow() if the QApplication containing QMdiArea is active.

See also activeSubWindow() and QApplication::activeWindow().

Upstream PySide2 reference signatures (binding differences may apply):

currentSubWindow(self) -> PySide2.QtWidgets.QMdiSubWindow

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#currentSubWindow

customContextMenuRequested

customContextMenuRequested(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QMdiArea.customContextMenuRequested; argument details are not documented.

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QMdiArea.destroyed; argument details are not documented.

documentMode instance-attribute

documentMode: bool

Qt 5 reference:

documentMode : bool

This property holds whether the tab bar is set to document mode in tabbed view mode.

Document mode is disabled by default.

This property was introduced in Qt 4.5.

Access functions:

bool documentMode() const
void setDocumentMode(bool enabled)

See also QTabBar::documentMode and setViewMode().

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#documentMode

dragEnterEvent

dragEnterEvent(arg__1: Any) -> Any

X.dragEnterEvent(arg__1)

dragLeaveEvent

dragLeaveEvent(arg__1: Any) -> Any

X.dragLeaveEvent(arg__1)

dragMoveEvent

dragMoveEvent(arg__1: Any) -> Any

X.dragMoveEvent(arg__1)

dropEvent

dropEvent(arg__1: Any) -> Any

X.dropEvent(arg__1)

event

event(event: Any) -> bool

X.event(event) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QMdiArea::event(QEvent *event)

Reimplements: QAbstractScrollArea::event(QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

event(self, event: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#event

eventFilter

eventFilter(object: Any, event: Any) -> bool

X.eventFilter(object, event) -> bool

Supplemental documentation: Qt 5 reference:

[override virtual protected] bool QMdiArea::eventFilter(QObject *object, QEvent *event)

Reimplements: QObject::eventFilter(QObject *watched, QEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

eventFilter(self, object: PySide2.QtCore.QObject, event: PySide2.QtCore.QEvent) -> bool

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#eventFilter

minimumSizeHint instance-attribute

minimumSizeHint: QSize

Qt 5 reference:

[override virtual] QSize QMdiArea::minimumSizeHint() const

Reimplements: QAbstractScrollArea::minimumSizeHint() const.

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#minimumSizeHint

mouseDoubleClickEvent

mouseDoubleClickEvent(arg__1: Any) -> Any

X.mouseDoubleClickEvent(arg__1)

mouseMoveEvent

mouseMoveEvent(arg__1: Any) -> Any

X.mouseMoveEvent(arg__1)

mousePressEvent

mousePressEvent(arg__1: Any) -> Any

X.mousePressEvent(arg__1)

mouseReleaseEvent

mouseReleaseEvent(arg__1: Any) -> Any

X.mouseReleaseEvent(arg__1)

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QMdiArea.objectNameChanged; argument details are not documented.

paintEvent

paintEvent(paintEvent: Any) -> None

X.paintEvent(paintEvent)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QMdiArea::paintEvent(QPaintEvent *paintEvent)

Reimplements: QAbstractScrollArea::paintEvent(QPaintEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

paintEvent(self, paintEvent: PySide2.QtGui.QPaintEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#paintEvent

removeSubWindow

removeSubWindow(widget: Any) -> None

X.removeSubWindow(widget)

Supplemental documentation: Qt 5 reference:

void QMdiArea::removeSubWindow(QWidget *widget)

Removes widget from the MDI area. The widget must be either a QMdiSubWindow or a widget that is the internal widget of a subwindow. Note widget is never actually deleted by QMdiArea. If a QMdiSubWindow is passed in, its parent is set to nullptr and it is removed; but if an internal widget is passed in, the child widget is set to nullptr and the QMdiSubWindow is not removed.

See also addSubWindow().

Upstream PySide2 reference signatures (binding differences may apply):

removeSubWindow(self, widget: PySide2.QtWidgets.QWidget) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#removeSubWindow

resizeEvent

resizeEvent(resizeEvent: Any) -> None

X.resizeEvent(resizeEvent)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QMdiArea::resizeEvent(QResizeEvent *resizeEvent)

Reimplements: QAbstractScrollArea::resizeEvent(QResizeEvent *event).

Upstream PySide2 reference signatures (binding differences may apply):

resizeEvent(self, resizeEvent: PySide2.QtGui.QResizeEvent) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#resizeEvent

scrollContentsBy

scrollContentsBy(dx: int, dy: int) -> None

X.scrollContentsBy(dx, dy)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QMdiArea::scrollContentsBy(int dx, int dy)

Reimplements: QAbstractScrollArea::scrollContentsBy(int dx, int dy).

Upstream PySide2 reference signatures (binding differences may apply):

scrollContentsBy(self, dx: int, dy: int) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#scrollContentsBy

setActivationOrder

setActivationOrder(order: Any) -> None

X.setActivationOrder(order)

Upstream PySide2 reference signatures (binding differences may apply):

setActivationOrder(self, order: PySide2.QtWidgets.QMdiArea.WindowOrder) -> None

Source: https://doc.qt.io/archives/qt-5.15/qmdiarea.html#setActivationOrder