PythonQt.QtGui.QMainWindow · declarations 002
Back to PythonQt.QtGui.QMainWindow
setAnimated
setAnimated(enabled: bool) -> None
X.setAnimated(enabled)
Upstream PySide2 reference signatures (binding differences may apply):
setAnimated(self, enabled: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setAnimated
setCentralWidget
setCentralWidget(widget: Any) -> None
X.setCentralWidget(widget)
Supplemental documentation: Qt 5 reference:
void QMainWindow::setCentralWidget(QWidget *widget)
Sets the given widget to be the main window's central widget.
Note: QMainWindow takes ownership of the widget pointer and deletes it at the appropriate time.
See also centralWidget().
Upstream PySide2 reference signatures (binding differences may apply):
setCentralWidget(self, widget: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setCentralWidget
setCorner
setCorner(corner: Any, area: Any) -> None
X.setCorner(corner, area)
Supplemental documentation: Qt 5 reference:
void QMainWindow::setCorner(Qt::Corner corner, Qt::DockWidgetArea area)
Sets the given dock widget area to occupy the specified corner.
See also corner().
Upstream PySide2 reference signatures (binding differences may apply):
setCorner(self, corner: PySide2.QtCore.Qt.Corner, area: PySide2.QtCore.Qt.DockWidgetArea) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setCorner
setDockNestingEnabled
setDockNestingEnabled(enabled: bool) -> None
X.setDockNestingEnabled(enabled)
Upstream PySide2 reference signatures (binding differences may apply):
setDockNestingEnabled(self, enabled: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setDockNestingEnabled
setDockOptions
setDockOptions(options: Any) -> None
X.setDockOptions(options)
Upstream PySide2 reference signatures (binding differences may apply):
setDockOptions(self, options: PySide2.QtWidgets.QMainWindow.DockOptions) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setDockOptions
setDocumentMode
setDocumentMode(enabled: bool) -> None
X.setDocumentMode(enabled)
Upstream PySide2 reference signatures (binding differences may apply):
setDocumentMode(self, enabled: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setDocumentMode
setIconSize
setIconSize(iconSize: Any) -> None
X.setIconSize(iconSize)
Upstream PySide2 reference signatures (binding differences may apply):
setIconSize(self, iconSize: PySide2.QtCore.QSize) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setIconSize
setMenuBar
setMenuBar(menubar: Any) -> None
X.setMenuBar(menubar)
Supplemental documentation: Qt 5 reference:
void QMainWindow::setMenuBar(QMenuBar *menuBar)
Sets the menu bar for the main window to menuBar.
Note: QMainWindow takes ownership of the menuBar pointer and deletes it at the appropriate time.
See also menuBar().
Upstream PySide2 reference signatures (binding differences may apply):
setMenuBar(self, menubar: PySide2.QtWidgets.QMenuBar) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setMenuBar
setMenuWidget
setMenuWidget(menubar: Any) -> None
X.setMenuWidget(menubar)
Supplemental documentation: Qt 5 reference:
void QMainWindow::setMenuWidget(QWidget *menuBar)
Sets the menu bar for the main window to menuBar.
QMainWindow takes ownership of the menuBar pointer and deletes it at the appropriate time.
This function was introduced in Qt 4.2.
See also menuWidget().
Upstream PySide2 reference signatures (binding differences may apply):
setMenuWidget(self, menubar: PySide2.QtWidgets.QWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setMenuWidget
setStatusBar
setStatusBar(statusbar: Any) -> None
X.setStatusBar(statusbar)
Supplemental documentation: Qt 5 reference:
void QMainWindow::setStatusBar(QStatusBar *statusbar)
Sets the status bar for the main window to statusbar.
Setting the status bar to nullptr will remove it from the main window. Note that
QMainWindow takes ownership of
the statusbar pointer and deletes it at the appropriate time.
See also statusBar().
Upstream PySide2 reference signatures (binding differences may apply):
setStatusBar(self, statusbar: PySide2.QtWidgets.QStatusBar) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setStatusBar
setTabPosition
setTabPosition(areas: Any, tabPosition: Any) -> None
X.setTabPosition(areas, tabPosition)
Supplemental documentation: Qt 5 reference:
void QMainWindow::setTabPosition(Qt::DockWidgetAreas areas, QTabWidget::TabPosition tabPosition)
Sets the tab position for the given dock widget areas to the specified tabPosition. By default, all dock areas show their tabs at the bottom.
Note: The VerticalTabs dock option overrides the tab positions set by this method.
This function was introduced in Qt 4.5.
See also tabPosition() and setTabShape().
Upstream PySide2 reference signatures (binding differences may apply):
setTabPosition(self, areas: PySide2.QtCore.Qt.DockWidgetAreas, tabPosition: PySide2.QtWidgets.QTabWidget.TabPosition) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setTabPosition
setTabShape
setTabShape(tabShape: Any) -> None
X.setTabShape(tabShape)
Upstream PySide2 reference signatures (binding differences may apply):
setTabShape(self, tabShape: PySide2.QtWidgets.QTabWidget.TabShape) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setTabShape
setToolButtonStyle
setToolButtonStyle(toolButtonStyle: Any) -> None
X.setToolButtonStyle(toolButtonStyle)
Upstream PySide2 reference signatures (binding differences may apply):
setToolButtonStyle(self, toolButtonStyle: PySide2.QtCore.Qt.ToolButtonStyle) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setToolButtonStyle
setUnifiedTitleAndToolBarOnMac
setUnifiedTitleAndToolBarOnMac(set: bool) -> None
X.setUnifiedTitleAndToolBarOnMac(set)
Upstream PySide2 reference signatures (binding differences may apply):
setUnifiedTitleAndToolBarOnMac(self, set: bool) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#setUnifiedTitleAndToolBarOnMac
splitDockWidget
splitDockWidget(after: Any, dockwidget: Any, orientation: Any) -> None
X.splitDockWidget(after, dockwidget, orientation)
Supplemental documentation: Qt 5 reference:
void QMainWindow::splitDockWidget(QDockWidget *first, QDockWidget *second, Qt::Orientation orientation)
Splits the space covered by the first dock widget into two parts, moves the first dock widget into the first part, and moves the second dock widget into the second part.
The orientation specifies how the space is divided: A Qt::Horizontal split places the second dock widget to the right of the first; a Qt::Vertical split places the second dock widget below the first.
Note: if first is currently in a tabbed docked area, second will be added as a new tab, not as a neighbor of first. This is because a single tab can contain only one dock widget.
Note: The Qt::LayoutDirection influences the order of the dock widgets in the two parts of the divided area. When right-to-left layout direction is enabled, the placing of the dock widgets will be reversed.
See also tabifyDockWidget(), addDockWidget(), and removeDockWidget().
Upstream PySide2 reference signatures (binding differences may apply):
splitDockWidget(self, after: PySide2.QtWidgets.QDockWidget, dockwidget: PySide2.QtWidgets.QDockWidget, orientation: PySide2.QtCore.Qt.Orientation) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#splitDockWidget
statusBar
statusBar() -> Any
X.statusBar() -> PythonQt.QtGui.QStatusBar
Supplemental documentation: Qt 5 reference:
QStatusBar *QMainWindow::statusBar() const
Returns the status bar for the main window. This function creates and returns an empty status bar if the status bar does not exist.
See also setStatusBar().
Upstream PySide2 reference signatures (binding differences may apply):
statusBar(self) -> PySide2.QtWidgets.QStatusBar
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#statusBar
tabPosition
tabPosition(area: Any) -> Any
X.tabPosition(area)
Supplemental documentation: Qt 5 reference:
QTabWidget::TabPosition QMainWindow::tabPosition(Qt::DockWidgetArea area) const
Returns the tab position for area.
Note: The VerticalTabs dock option overrides the tab positions returned by this function.
This function was introduced in Qt 4.5.
See also setTabPosition() and tabShape().
Upstream PySide2 reference signatures (binding differences may apply):
tabPosition(self, area: PySide2.QtCore.Qt.DockWidgetArea) -> PySide2.QtWidgets.QTabWidget.TabPosition
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#tabPosition
tabShape
instance-attribute
tabShape: Any
Qt 5 reference:
tabShape : QTabWidget::TabShape
This property holds the tab shape used for tabbed dock widgets.
The default is QTabWidget::Rounded.
This property was introduced in Qt 4.5.
Access functions:
| QTabWidget::TabShape | tabShape() const |
|---|---|
| void | setTabShape(QTabWidget::TabShape tabShape) |
See also setTabPosition().
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#tabShape
tabifiedDockWidgetActivated
tabifiedDockWidgetActivated(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QMainWindow.tabifiedDockWidgetActivated; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QMainWindow::tabifiedDockWidgetActivated(QDockWidget *dockWidget)
This signal is emitted when the tabified dock widget is activated by selecting the tab. The activated dock widget is passed in dockWidget.
This function was introduced in Qt 5.8.
See also tabifyDockWidget() and tabifiedDockWidgets().
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#tabifiedDockWidgetActivated
tabifiedDockWidgets
tabifiedDockWidgets(dockwidget: Any) -> tuple
X.tabifiedDockWidgets(dockwidget) -> tuple
Supplemental documentation: Qt 5 reference:
QList\<QDockWidget *> QMainWindow::tabifiedDockWidgets(QDockWidget *dockwidget) const
Returns the dock widgets that are tabified together with dockwidget.
This function was introduced in Qt 4.5.
See also tabifyDockWidget().
Upstream PySide2 reference signatures (binding differences may apply):
tabifiedDockWidgets(self, dockwidget: PySide2.QtWidgets.QDockWidget) -> typing.List[PySide2.QtWidgets.QDockWidget]
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#tabifiedDockWidgets
tabifyDockWidget
tabifyDockWidget(first: Any, second: Any) -> None
X.tabifyDockWidget(first, second)
Supplemental documentation: Qt 5 reference:
void QMainWindow::tabifyDockWidget(QDockWidget *first, QDockWidget *second)
Moves second dock widget on top of first dock widget, creating a tabbed docked area in the main window.
See also tabifiedDockWidgets().
Upstream PySide2 reference signatures (binding differences may apply):
tabifyDockWidget(self, first: PySide2.QtWidgets.QDockWidget, second: PySide2.QtWidgets.QDockWidget) -> None
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#tabifyDockWidget
takeCentralWidget
takeCentralWidget() -> Any
X.takeCentralWidget() -> PythonQt.QtGui.QWidget
Supplemental documentation: Qt 5 reference:
QWidget *QMainWindow::takeCentralWidget()
Removes the central widget from this main window.
The ownership of the removed widget is passed to the caller.
This function was introduced in Qt 5.2.
Upstream PySide2 reference signatures (binding differences may apply):
takeCentralWidget(self) -> PySide2.QtWidgets.QWidget
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#takeCentralWidget
toolBarArea
toolBarArea(toolbar: Any) -> Any
X.toolBarArea(toolbar)
Supplemental documentation: Qt 5 reference:
Qt::ToolBarArea QMainWindow::toolBarArea(QToolBar *toolbar) const
Returns the
Qt::ToolBarArea for
toolbar. If toolbar has not been added to the main window, this function returns
Qt::NoToolBarArea.
See also addToolBar(), addToolBarBreak(), and Qt::ToolBarArea.
Upstream PySide2 reference signatures (binding differences may apply):
toolBarArea(self, toolbar: PySide2.QtWidgets.QToolBar) -> PySide2.QtCore.Qt.ToolBarArea
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#toolBarArea
toolBarBreak
toolBarBreak(toolbar: Any) -> bool
X.toolBarBreak(toolbar) -> bool
Supplemental documentation: Qt 5 reference:
bool QMainWindow::toolBarBreak(QToolBar *toolbar) const
Returns whether there is a toolbar break before the toolbar.
See also addToolBarBreak() and insertToolBarBreak().
Upstream PySide2 reference signatures (binding differences may apply):
toolBarBreak(self, toolbar: PySide2.QtWidgets.QToolBar) -> bool
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#toolBarBreak
toolButtonStyle
instance-attribute
toolButtonStyle: Any
Qt 5 reference:
toolButtonStyle : Qt::ToolButtonStyle
style of toolbar buttons in this mainwindow.
To have the style of toolbuttons follow the system settings, set this property to Qt::ToolButtonFollowStyle. On Unix, the user settings from the desktop environment will be used. On other platforms, Qt::ToolButtonFollowStyle means icon only.
The default is Qt::ToolButtonIconOnly.
Access functions:
| Qt::ToolButtonStyle | toolButtonStyle() const |
|---|---|
| void | setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle) |
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#toolButtonStyle
toolButtonStyleChanged
toolButtonStyleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QMainWindow.toolButtonStyleChanged; argument details are not documented.
Supplemental documentation: Qt 5 reference:
[signal] void QMainWindow::toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle)
This signal is emitted when the style used for tool buttons in the window is changed. The new style is passed in toolButtonStyle.
You can connect this signal to other components to help maintain a consistent appearance for your application.
See also setToolButtonStyle().
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#toolButtonStyleChanged
unifiedTitleAndToolBarOnMac
instance-attribute
unifiedTitleAndToolBarOnMac: bool
Qt 5 reference:
unifiedTitleAndToolBarOnMac : bool
This property holds whether the window uses the unified title and toolbar look on macOS
Note that the Qt 5 implementation has several limitations compared to Qt 4:
- Use in windows with OpenGL content is not supported. This includes QGLWidget and QOpenGLWidget.
- Using dockable or movable toolbars may result in painting errors and is not recommended
This property was introduced in Qt 5.2.
Access functions:
| bool | unifiedTitleAndToolBarOnMac() const |
|---|---|
| void | setUnifiedTitleAndToolBarOnMac(bool set) |
Source: https://doc.qt.io/archives/qt-5.15/qmainwindow.html#unifiedTitleAndToolBarOnMac
windowIconChanged
windowIconChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QMainWindow.windowIconChanged; argument details are not documented.
windowIconTextChanged
windowIconTextChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QMainWindow.windowIconTextChanged; argument details are not documented.
windowTitleChanged
windowTitleChanged(*args: Any, **kwargs: Any) -> Any
Native PythonQt.QtGui.QMainWindow.windowTitleChanged; argument details are not documented.