API reference - Class QMainWindow

Notation used in Ruby API documentation

Module: QtWidgets

Description: Binding of QMainWindow

Class hierarchy: QMainWindow » QWidget » QObject

Sub-classes: DockOption, QFlags_DockOption

Public constructors

new QMainWindownew(QWidget ptr parent = nullptr,
Qt_QFlags_WindowType flags = Qt::WindowFlags())
Constructor QMainWindow::QMainWindow(QWidget *parent, QFlags<Qt::WindowType> flags)

Public methods

[const]QMainWindow ptr_const_castReturns a non-const reference to self.
void_createEnsures the C++ object is created
void_destroyExplicitly destroys the object
[const]bool_destroyed?Returns a value indicating whether the object was already destroyed
[const]bool_is_const_object?Returns a value indicating whether the reference is a const reference
void_manageMarks the object as managed by the script side.
void_unmanageMarks the object as no longer owned by the script side.
voidaddDockWidget(const Qt_DockWidgetArea area,
QDockWidget ptr dockwidget)
Method void QMainWindow::addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget)
voidaddDockWidget(const Qt_DockWidgetArea area,
QDockWidget ptr dockwidget,
const Qt_Orientation orientation)
Method void QMainWindow::addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget, Qt::Orientation orientation)
voidaddToolBar(const Qt_ToolBarArea area,
QToolBar ptr toolbar)
Method void QMainWindow::addToolBar(Qt::ToolBarArea area, QToolBar *toolbar)
voidaddToolBar(QToolBar ptr toolbar)Method void QMainWindow::addToolBar(QToolBar *toolbar)
QToolBar ptraddToolBar(string title)Method QToolBar *QMainWindow::addToolBar(const QString &title)
voidaddToolBarBreak(const Qt_ToolBarArea area = Qt::TopToolBarArea)Method void QMainWindow::addToolBarBreak(Qt::ToolBarArea area)
[const]boolanimatedMethod bool QMainWindow::isAnimated()
voidanimated=(bool enabled)Method void QMainWindow::setAnimated(bool enabled)
[const]QWidget ptrcentralWidgetMethod QWidget *QMainWindow::centralWidget()
voidcentralWidget=(QWidget ptr widget)Method void QMainWindow::setCentralWidget(QWidget *widget)
[const]Qt_DockWidgetAreacorner(const Qt_Corner corner)Method Qt::DockWidgetArea QMainWindow::corner(Qt::Corner corner)
QMenu ptrcreatePopupMenuVirtual method QMenu *QMainWindow::createPopupMenu()
[signal]voidcustomContextMenuRequested(const QPoint pos)Signal declaration for QMainWindow::customContextMenuRequested(const QPoint &pos)
[signal]voiddestroyed(QObject ptr arg1)Signal declaration for QMainWindow::destroyed(QObject *)
[const]booldockNestingEnabledMethod bool QMainWindow::isDockNestingEnabled()
voiddockNestingEnabled=(bool enabled)Method void QMainWindow::setDockNestingEnabled(bool enabled)
[const]QMainWindow_QFlags_DockOptiondockOptionsMethod QFlags<QMainWindow::DockOption> QMainWindow::dockOptions()
voiddockOptions=(QMainWindow_QFlags_DockOption options)Method void QMainWindow::setDockOptions(QFlags<QMainWindow::DockOption> options)
[const]Qt_DockWidgetAreadockWidgetArea(QDockWidget ptr dockwidget)Method Qt::DockWidgetArea QMainWindow::dockWidgetArea(QDockWidget *dockwidget)
[const]booldocumentModeMethod bool QMainWindow::documentMode()
voiddocumentMode=(bool enabled)Method void QMainWindow::setDocumentMode(bool enabled)
voidemit_customContextMenuRequested(const QPoint pos)Emitter for signal void QMainWindow::customContextMenuRequested(const QPoint &pos)
voidemit_destroyed(QObject ptr arg1 = nullptr)Emitter for signal void QMainWindow::destroyed(QObject *)
voidemit_iconSizeChanged(const QSize iconSize)Emitter for signal void QMainWindow::iconSizeChanged(const QSize &iconSize)
voidemit_objectNameChanged(string objectName)Emitter for signal void QMainWindow::objectNameChanged(const QString &objectName)
voidemit_tabifiedDockWidgetActivated(QDockWidget ptr dockWidget)Emitter for signal void QMainWindow::tabifiedDockWidgetActivated(QDockWidget *dockWidget)
voidemit_toolButtonStyleChanged(const Qt_ToolButtonStyle toolButtonStyle)Emitter for signal void QMainWindow::toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle)
voidemit_windowIconChanged(const QIcon icon)Emitter for signal void QMainWindow::windowIconChanged(const QIcon &icon)
voidemit_windowIconTextChanged(string iconText)Emitter for signal void QMainWindow::windowIconTextChanged(const QString &iconText)
voidemit_windowTitleChanged(string title)Emitter for signal void QMainWindow::windowTitleChanged(const QString &title)
booleventFilter(QObject ptr watched,
QEvent ptr event)
Virtual method bool QMainWindow::eventFilter(QObject *watched, QEvent *event)
[const]boolhasHeightForWidthVirtual method bool QMainWindow::hasHeightForWidth()
[const]intheightForWidth(int arg1)Virtual method int QMainWindow::heightForWidth(int)
[const]QSizeiconSizeMethod QSize QMainWindow::iconSize()
voidiconSize=(const QSize iconSize)Method void QMainWindow::setIconSize(const QSize &iconSize)
[signal]voidiconSizeChanged(const QSize iconSize)Signal declaration for QMainWindow::iconSizeChanged(const QSize &iconSize)
[const]variantinputMethodQuery(const Qt_InputMethodQuery arg1)Virtual method QVariant QMainWindow::inputMethodQuery(Qt::InputMethodQuery)
voidinsertToolBar(QToolBar ptr before,
QToolBar ptr toolbar)
Method void QMainWindow::insertToolBar(QToolBar *before, QToolBar *toolbar)
voidinsertToolBarBreak(QToolBar ptr before)Method void QMainWindow::insertToolBarBreak(QToolBar *before)
[const]boolisAnimated?Method bool QMainWindow::isAnimated()
[const]boolisDockNestingEnabled?Method bool QMainWindow::isDockNestingEnabled()
[const]boolisSeparator?(const QPoint pos)Method bool QMainWindow::isSeparator(const QPoint &pos)
[const]QMenuBar ptrmenuBarMethod QMenuBar *QMainWindow::menuBar()
voidmenuBar=(QMenuBar ptr menubar)Method void QMainWindow::setMenuBar(QMenuBar *menubar)
[const]QWidget ptrmenuWidgetMethod QWidget *QMainWindow::menuWidget()
voidmenuWidget=(QWidget ptr menubar)Method void QMainWindow::setMenuWidget(QWidget *menubar)
[const]QSizeminimumSizeHintVirtual method QSize QMainWindow::minimumSizeHint()
[signal]voidobjectNameChanged(string objectName)Signal declaration for QMainWindow::objectNameChanged(const QString &objectName)
[const]QPaintEngine ptrpaintEngineVirtual method QPaintEngine *QMainWindow::paintEngine()
voidremoveDockWidget(QDockWidget ptr dockwidget)Method void QMainWindow::removeDockWidget(QDockWidget *dockwidget)
voidremoveToolBar(QToolBar ptr toolbar)Method void QMainWindow::removeToolBar(QToolBar *toolbar)
voidremoveToolBarBreak(QToolBar ptr before)Method void QMainWindow::removeToolBarBreak(QToolBar *before)
voidresizeDocks(QDockWidget ptr[] docks,
int[] sizes,
const Qt_Orientation orientation)
Method void QMainWindow::resizeDocks(const QList<QDockWidget *> &docks, const QList<int> &sizes, Qt::Orientation orientation)
boolrestoreDockWidget(QDockWidget ptr dockwidget)Method bool QMainWindow::restoreDockWidget(QDockWidget *dockwidget)
boolrestoreState(bytes state,
int version = 0)
Method bool QMainWindow::restoreState(const QByteArray &state, int version)
[const]bytessaveState(int version = 0)Method QByteArray QMainWindow::saveState(int version)
voidsetAnimated(bool enabled)Method void QMainWindow::setAnimated(bool enabled)
voidsetCentralWidget(QWidget ptr widget)Method void QMainWindow::setCentralWidget(QWidget *widget)
voidsetCorner(const Qt_Corner corner,
const Qt_DockWidgetArea area)
Method void QMainWindow::setCorner(Qt::Corner corner, Qt::DockWidgetArea area)
voidsetDockNestingEnabled(bool enabled)Method void QMainWindow::setDockNestingEnabled(bool enabled)
voidsetDockOptions(QMainWindow_QFlags_DockOption options)Method void QMainWindow::setDockOptions(QFlags<QMainWindow::DockOption> options)
voidsetDocumentMode(bool enabled)Method void QMainWindow::setDocumentMode(bool enabled)
voidsetIconSize(const QSize iconSize)Method void QMainWindow::setIconSize(const QSize &iconSize)
voidsetMenuBar(QMenuBar ptr menubar)Method void QMainWindow::setMenuBar(QMenuBar *menubar)
voidsetMenuWidget(QWidget ptr menubar)Method void QMainWindow::setMenuWidget(QWidget *menubar)
voidsetStatusBar(QStatusBar ptr statusbar)Method void QMainWindow::setStatusBar(QStatusBar *statusbar)
voidsetTabPosition(Qt_QFlags_DockWidgetArea areas,
const QTabWidget_TabPosition tabPosition)
Method void QMainWindow::setTabPosition(QFlags<Qt::DockWidgetArea> areas, QTabWidget::TabPosition tabPosition)
voidsetTabShape(const QTabWidget_TabShape tabShape)Method void QMainWindow::setTabShape(QTabWidget::TabShape tabShape)
voidsetToolButtonStyle(const Qt_ToolButtonStyle toolButtonStyle)Method void QMainWindow::setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle)
voidsetUnifiedTitleAndToolBarOnMac(bool set)Method void QMainWindow::setUnifiedTitleAndToolBarOnMac(bool set)
voidsetVisible(bool visible)Virtual method void QMainWindow::setVisible(bool visible)
[const]QSizesizeHintVirtual method QSize QMainWindow::sizeHint()
voidsplitDockWidget(QDockWidget ptr after,
QDockWidget ptr dockwidget,
const Qt_Orientation orientation)
Method void QMainWindow::splitDockWidget(QDockWidget *after, QDockWidget *dockwidget, Qt::Orientation orientation)
[const]QStatusBar ptrstatusBarMethod QStatusBar *QMainWindow::statusBar()
voidstatusBar=(QStatusBar ptr statusbar)Method void QMainWindow::setStatusBar(QStatusBar *statusbar)
[const]QTabWidget_TabPositiontabPosition(const Qt_DockWidgetArea area)Method QTabWidget::TabPosition QMainWindow::tabPosition(Qt::DockWidgetArea area)
[const]QTabWidget_TabShapetabShapeMethod QTabWidget::TabShape QMainWindow::tabShape()
voidtabShape=(const QTabWidget_TabShape tabShape)Method void QMainWindow::setTabShape(QTabWidget::TabShape tabShape)
[signal]voidtabifiedDockWidgetActivated(QDockWidget ptr dockWidget)Signal declaration for QMainWindow::tabifiedDockWidgetActivated(QDockWidget *dockWidget)
[const]QDockWidget ptr[]tabifiedDockWidgets(QDockWidget ptr dockwidget)Method QList<QDockWidget*> QMainWindow::tabifiedDockWidgets(QDockWidget *dockwidget)
voidtabifyDockWidget(QDockWidget ptr first,
QDockWidget ptr second)
Method void QMainWindow::tabifyDockWidget(QDockWidget *first, QDockWidget *second)
QWidget ptrtakeCentralWidgetMethod QWidget *QMainWindow::takeCentralWidget()
[const]Qt_ToolBarAreatoolBarArea(QToolBar ptr toolbar)Method Qt::ToolBarArea QMainWindow::toolBarArea(QToolBar *toolbar)
[const]booltoolBarBreak(QToolBar ptr toolbar)Method bool QMainWindow::toolBarBreak(QToolBar *toolbar)
[const]Qt_ToolButtonStyletoolButtonStyleMethod Qt::ToolButtonStyle QMainWindow::toolButtonStyle()
voidtoolButtonStyle=(const Qt_ToolButtonStyle toolButtonStyle)Method void QMainWindow::setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle)
[signal]voidtoolButtonStyleChanged(const Qt_ToolButtonStyle toolButtonStyle)Signal declaration for QMainWindow::toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle)
[const]boolunifiedTitleAndToolBarOnMacMethod bool QMainWindow::unifiedTitleAndToolBarOnMac()
voidunifiedTitleAndToolBarOnMac=(bool set)Method void QMainWindow::setUnifiedTitleAndToolBarOnMac(bool set)
[signal]voidwindowIconChanged(const QIcon icon)Signal declaration for QMainWindow::windowIconChanged(const QIcon &icon)
[signal]voidwindowIconTextChanged(string iconText)Signal declaration for QMainWindow::windowIconTextChanged(const QString &iconText)
[signal]voidwindowTitleChanged(string title)Signal declaration for QMainWindow::windowTitleChanged(const QString &title)

Public static methods and constants

[static,const]QMainWindow_DockOptionAllowNestedDocksEnum constant QMainWindow::AllowNestedDocks
[static,const]QMainWindow_DockOptionAllowTabbedDocksEnum constant QMainWindow::AllowTabbedDocks
[static,const]QMainWindow_DockOptionAnimatedDocksEnum constant QMainWindow::AnimatedDocks
[static,const]QMainWindow_DockOptionForceTabbedDocksEnum constant QMainWindow::ForceTabbedDocks
[static,const]QMainWindow_DockOptionGroupedDraggingEnum constant QMainWindow::GroupedDragging
[static,const]QMainWindow_DockOptionVerticalTabsEnum constant QMainWindow::VerticalTabs
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = nullptr,
int n = -1)
Static method QString QMainWindow::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = nullptr,
int n = -1)
Static method QString QMainWindow::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

voidactionEvent(QActionEvent ptr event)Virtual method void QMainWindow::actionEvent(QActionEvent *event)
voidchangeEvent(QEvent ptr arg1)Virtual method void QMainWindow::changeEvent(QEvent *)
voidchildEvent(QChildEvent ptr event)Virtual method void QMainWindow::childEvent(QChildEvent *event)
voidcloseEvent(QCloseEvent ptr event)Virtual method void QMainWindow::closeEvent(QCloseEvent *event)
voidcontextMenuEvent(QContextMenuEvent ptr event)Virtual method void QMainWindow::contextMenuEvent(QContextMenuEvent *event)
voidcreate(unsigned long long arg1 = 0,
bool initializeWindow = true,
bool destroyOldWindow = true)
Method void QMainWindow::create(WId, bool initializeWindow, bool destroyOldWindow)
voidcustomEvent(QEvent ptr event)Virtual method void QMainWindow::customEvent(QEvent *event)
voiddestroy(bool destroyWindow = true,
bool destroySubWindows = true)
Method void QMainWindow::destroy(bool destroyWindow, bool destroySubWindows)
voiddisconnectNotify(const QMetaMethod signal)Virtual method void QMainWindow::disconnectNotify(const QMetaMethod &signal)
voiddragEnterEvent(QDragEnterEvent ptr event)Virtual method void QMainWindow::dragEnterEvent(QDragEnterEvent *event)
voiddragLeaveEvent(QDragLeaveEvent ptr event)Virtual method void QMainWindow::dragLeaveEvent(QDragLeaveEvent *event)
voiddragMoveEvent(QDragMoveEvent ptr event)Virtual method void QMainWindow::dragMoveEvent(QDragMoveEvent *event)
voiddropEvent(QDropEvent ptr event)Virtual method void QMainWindow::dropEvent(QDropEvent *event)
voidenterEvent(QEvent ptr event)Virtual method void QMainWindow::enterEvent(QEvent *event)
boolevent(QEvent ptr event)Virtual method bool QMainWindow::event(QEvent *event)
voidfocusInEvent(QFocusEvent ptr event)Virtual method void QMainWindow::focusInEvent(QFocusEvent *event)
boolfocusNextChildMethod bool QMainWindow::focusNextChild()
boolfocusNextPrevChild(bool next)Virtual method bool QMainWindow::focusNextPrevChild(bool next)
voidfocusOutEvent(QFocusEvent ptr event)Virtual method void QMainWindow::focusOutEvent(QFocusEvent *event)
boolfocusPreviousChildMethod bool QMainWindow::focusPreviousChild()
voidhideEvent(QHideEvent ptr event)Virtual method void QMainWindow::hideEvent(QHideEvent *event)
[const]voidinitPainter(QPainter ptr painter)Virtual method void QMainWindow::initPainter(QPainter *painter)
voidinputMethodEvent(QInputMethodEvent ptr arg1)Virtual method void QMainWindow::inputMethodEvent(QInputMethodEvent *)
[const]boolisSignalConnected(const QMetaMethod signal)Method bool QMainWindow::isSignalConnected(const QMetaMethod &signal)
voidkeyPressEvent(QKeyEvent ptr event)Virtual method void QMainWindow::keyPressEvent(QKeyEvent *event)
voidkeyReleaseEvent(QKeyEvent ptr event)Virtual method void QMainWindow::keyReleaseEvent(QKeyEvent *event)
voidleaveEvent(QEvent ptr event)Virtual method void QMainWindow::leaveEvent(QEvent *event)
[const]intmetric(const QPaintDevice_PaintDeviceMetric arg1)Virtual method int QMainWindow::metric(QPaintDevice::PaintDeviceMetric)
voidmouseDoubleClickEvent(QMouseEvent ptr event)Virtual method void QMainWindow::mouseDoubleClickEvent(QMouseEvent *event)
voidmouseMoveEvent(QMouseEvent ptr event)Virtual method void QMainWindow::mouseMoveEvent(QMouseEvent *event)
voidmousePressEvent(QMouseEvent ptr event)Virtual method void QMainWindow::mousePressEvent(QMouseEvent *event)
voidmouseReleaseEvent(QMouseEvent ptr event)Virtual method void QMainWindow::mouseReleaseEvent(QMouseEvent *event)
voidmoveEvent(QMoveEvent ptr event)Virtual method void QMainWindow::moveEvent(QMoveEvent *event)
boolnativeEvent(bytes eventType,
void * message,
long ptr result)
Virtual method bool QMainWindow::nativeEvent(const QByteArray &eventType, void *message, long int *result)
voidpaintEvent(QPaintEvent ptr event)Virtual method void QMainWindow::paintEvent(QPaintEvent *event)
voidqt_create(unsigned long long arg1 = 0,
bool initializeWindow = true,
bool destroyOldWindow = true)
Method void QMainWindow::create(WId, bool initializeWindow, bool destroyOldWindow)
voidqt_destroy(bool destroyWindow = true,
bool destroySubWindows = true)
Method void QMainWindow::destroy(bool destroyWindow, bool destroySubWindows)
[const]intreceivers(string signal)Method int QMainWindow::receivers(const char *signal)
[const]QPaintDevice ptrredirected(QPoint ptr offset)Virtual method QPaintDevice *QMainWindow::redirected(QPoint *offset)
voidresizeEvent(QResizeEvent ptr event)Virtual method void QMainWindow::resizeEvent(QResizeEvent *event)
[const]QObject ptrsenderMethod QObject *QMainWindow::sender()
[const]intsenderSignalIndexMethod int QMainWindow::senderSignalIndex()
[const]QPainter ptrsharedPainterVirtual method QPainter *QMainWindow::sharedPainter()
voidshowEvent(QShowEvent ptr event)Virtual method void QMainWindow::showEvent(QShowEvent *event)
voidtabletEvent(QTabletEvent ptr event)Virtual method void QMainWindow::tabletEvent(QTabletEvent *event)
voidtimerEvent(QTimerEvent ptr event)Virtual method void QMainWindow::timerEvent(QTimerEvent *event)
voidupdateMicroFocusMethod void QMainWindow::updateMicroFocus()
voidwheelEvent(QWheelEvent ptr event)Virtual method void QMainWindow::wheelEvent(QWheelEvent *event)

Detailed description

AllowNestedDocks

Signature: [static,const] QMainWindow_DockOption AllowNestedDocks

Description: Enum constant QMainWindow::AllowNestedDocks

Python specific notes:
The object exposes a readable attribute 'AllowNestedDocks'. This is the getter.

AllowTabbedDocks

Signature: [static,const] QMainWindow_DockOption AllowTabbedDocks

Description: Enum constant QMainWindow::AllowTabbedDocks

Python specific notes:
The object exposes a readable attribute 'AllowTabbedDocks'. This is the getter.

AnimatedDocks

Signature: [static,const] QMainWindow_DockOption AnimatedDocks

Description: Enum constant QMainWindow::AnimatedDocks

Python specific notes:
The object exposes a readable attribute 'AnimatedDocks'. This is the getter.

ForceTabbedDocks

Signature: [static,const] QMainWindow_DockOption ForceTabbedDocks

Description: Enum constant QMainWindow::ForceTabbedDocks

Python specific notes:
The object exposes a readable attribute 'ForceTabbedDocks'. This is the getter.

GroupedDragging

Signature: [static,const] QMainWindow_DockOption GroupedDragging

Description: Enum constant QMainWindow::GroupedDragging

Python specific notes:
The object exposes a readable attribute 'GroupedDragging'. This is the getter.

VerticalTabs

Signature: [static,const] QMainWindow_DockOption VerticalTabs

Description: Enum constant QMainWindow::VerticalTabs

Python specific notes:
The object exposes a readable attribute 'VerticalTabs'. This is the getter.

_const_cast

Signature: [const] QMainWindow ptr _const_cast

Description: Returns a non-const reference to self.

Basically, this method allows turning a const object reference to a non-const one. This method is provided as last resort to remove the constness from an object. Usually there is a good reason for a const object reference, so using this method may have undesired side effects.

This method has been introduced in version 0.29.6.

_create

Signature: void _create

Description: Ensures the C++ object is created

Use this method to ensure the C++ object is created, for example to ensure that resources are allocated. Usually C++ objects are created on demand and not necessarily when the script object is created.

_destroy

Signature: void _destroy

Description: Explicitly destroys the object

Explicitly destroys the object on C++ side if it was owned by the script interpreter. Subsequent access to this object will throw an exception. If the object is not owned by the script, this method will do nothing.

_destroyed?

Signature: [const] bool _destroyed?

Description: Returns a value indicating whether the object was already destroyed

This method returns true, if the object was destroyed, either explicitly or by the C++ side. The latter may happen, if the object is owned by a C++ object which got destroyed itself.

_is_const_object?

Signature: [const] bool _is_const_object?

Description: Returns a value indicating whether the reference is a const reference

This method returns true, if self is a const reference. In that case, only const methods may be called on self.

_manage

Signature: void _manage

Description: Marks the object as managed by the script side.

After calling this method on an object, the script side will be responsible for the management of the object. This method may be called if an object is returned from a C++ function and the object is known not to be owned by any C++ instance. If necessary, the script side may delete the object if the script's reference is no longer required.

Usually it's not required to call this method. It has been introduced in version 0.24.

_unmanage

Signature: void _unmanage

Description: Marks the object as no longer owned by the script side.

Calling this method will make this object no longer owned by the script's memory management. Instead, the object must be managed in some other way. Usually this method may be called if it is known that some C++ object holds and manages this object. Technically speaking, this method will turn the script's reference into a weak reference. After the script engine decides to delete the reference, the object itself will still exist. If the object is not managed otherwise, memory leaks will occur.

Usually it's not required to call this method. It has been introduced in version 0.24.

actionEvent

Signature: void actionEvent (QActionEvent ptr event)

Description: Virtual method void QMainWindow::actionEvent(QActionEvent *event)

This method can be reimplemented in a derived class.

addDockWidget

(1) Signature: void addDockWidget (const Qt_DockWidgetArea area, QDockWidget ptr dockwidget)

Description: Method void QMainWindow::addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget)

(2) Signature: void addDockWidget (const Qt_DockWidgetArea area, QDockWidget ptr dockwidget, const Qt_Orientation orientation)

Description: Method void QMainWindow::addDockWidget(Qt::DockWidgetArea area, QDockWidget *dockwidget, Qt::Orientation orientation)

addToolBar

(1) Signature: void addToolBar (const Qt_ToolBarArea area, QToolBar ptr toolbar)

Description: Method void QMainWindow::addToolBar(Qt::ToolBarArea area, QToolBar *toolbar)

(2) Signature: void addToolBar (QToolBar ptr toolbar)

Description: Method void QMainWindow::addToolBar(QToolBar *toolbar)

(3) Signature: QToolBar ptr addToolBar (string title)

Description: Method QToolBar *QMainWindow::addToolBar(const QString &title)

addToolBarBreak

Signature: void addToolBarBreak (const Qt_ToolBarArea area = Qt::TopToolBarArea)

Description: Method void QMainWindow::addToolBarBreak(Qt::ToolBarArea area)

animated

Signature: [const] bool animated

Description: Method bool QMainWindow::isAnimated()

Python specific notes:
The object exposes a readable attribute 'animated'. This is the getter.

animated=

Signature: void animated= (bool enabled)

Description: Method void QMainWindow::setAnimated(bool enabled)

Python specific notes:
The object exposes a writable attribute 'animated'. This is the setter.

centralWidget

Signature: [const] QWidget ptr centralWidget

Description: Method QWidget *QMainWindow::centralWidget()

Python specific notes:
The object exposes a readable attribute 'centralWidget'. This is the getter.

centralWidget=

Signature: void centralWidget= (QWidget ptr widget)

Description: Method void QMainWindow::setCentralWidget(QWidget *widget)

Python specific notes:
The object exposes a writable attribute 'centralWidget'. This is the setter.

changeEvent

Signature: void changeEvent (QEvent ptr arg1)

Description: Virtual method void QMainWindow::changeEvent(QEvent *)

This method can be reimplemented in a derived class.

childEvent

Signature: void childEvent (QChildEvent ptr event)

Description: Virtual method void QMainWindow::childEvent(QChildEvent *event)

This method can be reimplemented in a derived class.

closeEvent

Signature: void closeEvent (QCloseEvent ptr event)

Description: Virtual method void QMainWindow::closeEvent(QCloseEvent *event)

This method can be reimplemented in a derived class.

contextMenuEvent

Signature: void contextMenuEvent (QContextMenuEvent ptr event)

Description: Virtual method void QMainWindow::contextMenuEvent(QContextMenuEvent *event)

This method can be reimplemented in a derived class.

corner

Signature: [const] Qt_DockWidgetArea corner (const Qt_Corner corner)

Description: Method Qt::DockWidgetArea QMainWindow::corner(Qt::Corner corner)

create

Signature: void create (unsigned long long arg1 = 0, bool initializeWindow = true, bool destroyOldWindow = true)

Description: Method void QMainWindow::create(WId, bool initializeWindow, bool destroyOldWindow)

This method is protected and can only be called from inside a derived class.

createPopupMenu

Signature: QMenu ptr createPopupMenu

Description: Virtual method QMenu *QMainWindow::createPopupMenu()

This method can be reimplemented in a derived class.

customContextMenuRequested

Signature: [signal] void customContextMenuRequested (const QPoint pos)

Description: Signal declaration for QMainWindow::customContextMenuRequested(const QPoint &pos)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'customContextMenuRequested'. This is the getter.
The object exposes a writable attribute 'customContextMenuRequested'. This is the setter.

customEvent

Signature: void customEvent (QEvent ptr event)

Description: Virtual method void QMainWindow::customEvent(QEvent *event)

This method can be reimplemented in a derived class.

destroy

Signature: void destroy (bool destroyWindow = true, bool destroySubWindows = true)

Description: Method void QMainWindow::destroy(bool destroyWindow, bool destroySubWindows)

This method is protected and can only be called from inside a derived class.

destroyed

Signature: [signal] void destroyed (QObject ptr arg1)

Description: Signal declaration for QMainWindow::destroyed(QObject *)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'destroyed'. This is the getter.
The object exposes a writable attribute 'destroyed'. This is the setter.

disconnectNotify

Signature: void disconnectNotify (const QMetaMethod signal)

Description: Virtual method void QMainWindow::disconnectNotify(const QMetaMethod &signal)

This method can be reimplemented in a derived class.

dockNestingEnabled

Signature: [const] bool dockNestingEnabled

Description: Method bool QMainWindow::isDockNestingEnabled()

Python specific notes:
The object exposes a readable attribute 'dockNestingEnabled'. This is the getter.

dockNestingEnabled=

Signature: void dockNestingEnabled= (bool enabled)

Description: Method void QMainWindow::setDockNestingEnabled(bool enabled)

Python specific notes:
The object exposes a writable attribute 'dockNestingEnabled'. This is the setter.

dockOptions

Signature: [const] QMainWindow_QFlags_DockOption dockOptions

Description: Method QFlags<QMainWindow::DockOption> QMainWindow::dockOptions()

Python specific notes:
The object exposes a readable attribute 'dockOptions'. This is the getter.

dockOptions=

Signature: void dockOptions= (QMainWindow_QFlags_DockOption options)

Description: Method void QMainWindow::setDockOptions(QFlags<QMainWindow::DockOption> options)

Python specific notes:
The object exposes a writable attribute 'dockOptions'. This is the setter.

dockWidgetArea

Signature: [const] Qt_DockWidgetArea dockWidgetArea (QDockWidget ptr dockwidget)

Description: Method Qt::DockWidgetArea QMainWindow::dockWidgetArea(QDockWidget *dockwidget)

documentMode

Signature: [const] bool documentMode

Description: Method bool QMainWindow::documentMode()

Python specific notes:
The object exposes a readable attribute 'documentMode'. This is the getter.

documentMode=

Signature: void documentMode= (bool enabled)

Description: Method void QMainWindow::setDocumentMode(bool enabled)

Python specific notes:
The object exposes a writable attribute 'documentMode'. This is the setter.

dragEnterEvent

Signature: void dragEnterEvent (QDragEnterEvent ptr event)

Description: Virtual method void QMainWindow::dragEnterEvent(QDragEnterEvent *event)

This method can be reimplemented in a derived class.

dragLeaveEvent

Signature: void dragLeaveEvent (QDragLeaveEvent ptr event)

Description: Virtual method void QMainWindow::dragLeaveEvent(QDragLeaveEvent *event)

This method can be reimplemented in a derived class.

dragMoveEvent

Signature: void dragMoveEvent (QDragMoveEvent ptr event)

Description: Virtual method void QMainWindow::dragMoveEvent(QDragMoveEvent *event)

This method can be reimplemented in a derived class.

dropEvent

Signature: void dropEvent (QDropEvent ptr event)

Description: Virtual method void QMainWindow::dropEvent(QDropEvent *event)

This method can be reimplemented in a derived class.

emit_customContextMenuRequested

Signature: void emit_customContextMenuRequested (const QPoint pos)

Description: Emitter for signal void QMainWindow::customContextMenuRequested(const QPoint &pos)

Call this method to emit this signal.

emit_destroyed

Signature: void emit_destroyed (QObject ptr arg1 = nullptr)

Description: Emitter for signal void QMainWindow::destroyed(QObject *)

Call this method to emit this signal.

emit_iconSizeChanged

Signature: void emit_iconSizeChanged (const QSize iconSize)

Description: Emitter for signal void QMainWindow::iconSizeChanged(const QSize &iconSize)

Call this method to emit this signal.

emit_objectNameChanged

Signature: void emit_objectNameChanged (string objectName)

Description: Emitter for signal void QMainWindow::objectNameChanged(const QString &objectName)

Call this method to emit this signal.

emit_tabifiedDockWidgetActivated

Signature: void emit_tabifiedDockWidgetActivated (QDockWidget ptr dockWidget)

Description: Emitter for signal void QMainWindow::tabifiedDockWidgetActivated(QDockWidget *dockWidget)

Call this method to emit this signal.

emit_toolButtonStyleChanged

Signature: void emit_toolButtonStyleChanged (const Qt_ToolButtonStyle toolButtonStyle)

Description: Emitter for signal void QMainWindow::toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle)

Call this method to emit this signal.

emit_windowIconChanged

Signature: void emit_windowIconChanged (const QIcon icon)

Description: Emitter for signal void QMainWindow::windowIconChanged(const QIcon &icon)

Call this method to emit this signal.

emit_windowIconTextChanged

Signature: void emit_windowIconTextChanged (string iconText)

Description: Emitter for signal void QMainWindow::windowIconTextChanged(const QString &iconText)

Call this method to emit this signal.

emit_windowTitleChanged

Signature: void emit_windowTitleChanged (string title)

Description: Emitter for signal void QMainWindow::windowTitleChanged(const QString &title)

Call this method to emit this signal.

enterEvent

Signature: void enterEvent (QEvent ptr event)

Description: Virtual method void QMainWindow::enterEvent(QEvent *event)

This method can be reimplemented in a derived class.

event

Signature: bool event (QEvent ptr event)

Description: Virtual method bool QMainWindow::event(QEvent *event)

This method can be reimplemented in a derived class.

eventFilter

Signature: bool eventFilter (QObject ptr watched, QEvent ptr event)

Description: Virtual method bool QMainWindow::eventFilter(QObject *watched, QEvent *event)

This method can be reimplemented in a derived class.

focusInEvent

Signature: void focusInEvent (QFocusEvent ptr event)

Description: Virtual method void QMainWindow::focusInEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusNextChild

Signature: bool focusNextChild

Description: Method bool QMainWindow::focusNextChild()

This method is protected and can only be called from inside a derived class.

focusNextPrevChild

Signature: bool focusNextPrevChild (bool next)

Description: Virtual method bool QMainWindow::focusNextPrevChild(bool next)

This method can be reimplemented in a derived class.

focusOutEvent

Signature: void focusOutEvent (QFocusEvent ptr event)

Description: Virtual method void QMainWindow::focusOutEvent(QFocusEvent *event)

This method can be reimplemented in a derived class.

focusPreviousChild

Signature: bool focusPreviousChild

Description: Method bool QMainWindow::focusPreviousChild()

This method is protected and can only be called from inside a derived class.

hasHeightForWidth

Signature: [const] bool hasHeightForWidth

Description: Virtual method bool QMainWindow::hasHeightForWidth()

This method can be reimplemented in a derived class.

heightForWidth

Signature: [const] int heightForWidth (int arg1)

Description: Virtual method int QMainWindow::heightForWidth(int)

This method can be reimplemented in a derived class.

hideEvent

Signature: void hideEvent (QHideEvent ptr event)

Description: Virtual method void QMainWindow::hideEvent(QHideEvent *event)

This method can be reimplemented in a derived class.

iconSize

Signature: [const] QSize iconSize

Description: Method QSize QMainWindow::iconSize()

Python specific notes:
The object exposes a readable attribute 'iconSize'. This is the getter.

iconSize=

Signature: void iconSize= (const QSize iconSize)

Description: Method void QMainWindow::setIconSize(const QSize &iconSize)

Python specific notes:
The object exposes a writable attribute 'iconSize'. This is the setter.

iconSizeChanged

Signature: [signal] void iconSizeChanged (const QSize iconSize)

Description: Signal declaration for QMainWindow::iconSizeChanged(const QSize &iconSize)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'iconSizeChanged'. This is the getter.
The object exposes a writable attribute 'iconSizeChanged'. This is the setter.

initPainter

Signature: [const] void initPainter (QPainter ptr painter)

Description: Virtual method void QMainWindow::initPainter(QPainter *painter)

This method can be reimplemented in a derived class.

inputMethodEvent

Signature: void inputMethodEvent (QInputMethodEvent ptr arg1)

Description: Virtual method void QMainWindow::inputMethodEvent(QInputMethodEvent *)

This method can be reimplemented in a derived class.

inputMethodQuery

Signature: [const] variant inputMethodQuery (const Qt_InputMethodQuery arg1)

Description: Virtual method QVariant QMainWindow::inputMethodQuery(Qt::InputMethodQuery)

This method can be reimplemented in a derived class.

insertToolBar

Signature: void insertToolBar (QToolBar ptr before, QToolBar ptr toolbar)

Description: Method void QMainWindow::insertToolBar(QToolBar *before, QToolBar *toolbar)

insertToolBarBreak

Signature: void insertToolBarBreak (QToolBar ptr before)

Description: Method void QMainWindow::insertToolBarBreak(QToolBar *before)

isAnimated?

Signature: [const] bool isAnimated?

Description: Method bool QMainWindow::isAnimated()

Python specific notes:
The object exposes a readable attribute 'animated'. This is the getter.

isDockNestingEnabled?

Signature: [const] bool isDockNestingEnabled?

Description: Method bool QMainWindow::isDockNestingEnabled()

Python specific notes:
The object exposes a readable attribute 'dockNestingEnabled'. This is the getter.

isSeparator?

Signature: [const] bool isSeparator? (const QPoint pos)

Description: Method bool QMainWindow::isSeparator(const QPoint &pos)

isSignalConnected

Signature: [const] bool isSignalConnected (const QMetaMethod signal)

Description: Method bool QMainWindow::isSignalConnected(const QMetaMethod &signal)

This method is protected and can only be called from inside a derived class.

keyPressEvent

Signature: void keyPressEvent (QKeyEvent ptr event)

Description: Virtual method void QMainWindow::keyPressEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

keyReleaseEvent

Signature: void keyReleaseEvent (QKeyEvent ptr event)

Description: Virtual method void QMainWindow::keyReleaseEvent(QKeyEvent *event)

This method can be reimplemented in a derived class.

leaveEvent

Signature: void leaveEvent (QEvent ptr event)

Description: Virtual method void QMainWindow::leaveEvent(QEvent *event)

This method can be reimplemented in a derived class.

menuBar

Signature: [const] QMenuBar ptr menuBar

Description: Method QMenuBar *QMainWindow::menuBar()

Python specific notes:
The object exposes a readable attribute 'menuBar'. This is the getter.

menuBar=

Signature: void menuBar= (QMenuBar ptr menubar)

Description: Method void QMainWindow::setMenuBar(QMenuBar *menubar)

Python specific notes:
The object exposes a writable attribute 'menuBar'. This is the setter.

menuWidget

Signature: [const] QWidget ptr menuWidget

Description: Method QWidget *QMainWindow::menuWidget()

Python specific notes:
The object exposes a readable attribute 'menuWidget'. This is the getter.

menuWidget=

Signature: void menuWidget= (QWidget ptr menubar)

Description: Method void QMainWindow::setMenuWidget(QWidget *menubar)

Python specific notes:
The object exposes a writable attribute 'menuWidget'. This is the setter.

metric

Signature: [const] int metric (const QPaintDevice_PaintDeviceMetric arg1)

Description: Virtual method int QMainWindow::metric(QPaintDevice::PaintDeviceMetric)

This method can be reimplemented in a derived class.

minimumSizeHint

Signature: [const] QSize minimumSizeHint

Description: Virtual method QSize QMainWindow::minimumSizeHint()

This method can be reimplemented in a derived class.

mouseDoubleClickEvent

Signature: void mouseDoubleClickEvent (QMouseEvent ptr event)

Description: Virtual method void QMainWindow::mouseDoubleClickEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mouseMoveEvent

Signature: void mouseMoveEvent (QMouseEvent ptr event)

Description: Virtual method void QMainWindow::mouseMoveEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mousePressEvent

Signature: void mousePressEvent (QMouseEvent ptr event)

Description: Virtual method void QMainWindow::mousePressEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

mouseReleaseEvent

Signature: void mouseReleaseEvent (QMouseEvent ptr event)

Description: Virtual method void QMainWindow::mouseReleaseEvent(QMouseEvent *event)

This method can be reimplemented in a derived class.

moveEvent

Signature: void moveEvent (QMoveEvent ptr event)

Description: Virtual method void QMainWindow::moveEvent(QMoveEvent *event)

This method can be reimplemented in a derived class.

nativeEvent

Signature: bool nativeEvent (bytes eventType, void * message, long ptr result)

Description: Virtual method bool QMainWindow::nativeEvent(const QByteArray &eventType, void *message, long int *result)

This method can be reimplemented in a derived class.

new

Signature: [static] new QMainWindow new (QWidget ptr parent = nullptr, Qt_QFlags_WindowType flags = Qt::WindowFlags())

Description: Constructor QMainWindow::QMainWindow(QWidget *parent, QFlags<Qt::WindowType> flags)

This method creates an object of class QMainWindow.

Python specific notes:
This method is the default initializer of the object.

objectNameChanged

Signature: [signal] void objectNameChanged (string objectName)

Description: Signal declaration for QMainWindow::objectNameChanged(const QString &objectName)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'objectNameChanged'. This is the getter.
The object exposes a writable attribute 'objectNameChanged'. This is the setter.

paintEngine

Signature: [const] QPaintEngine ptr paintEngine

Description: Virtual method QPaintEngine *QMainWindow::paintEngine()

This method can be reimplemented in a derived class.

paintEvent

Signature: void paintEvent (QPaintEvent ptr event)

Description: Virtual method void QMainWindow::paintEvent(QPaintEvent *event)

This method can be reimplemented in a derived class.

qt_create

Signature: void qt_create (unsigned long long arg1 = 0, bool initializeWindow = true, bool destroyOldWindow = true)

Description: Method void QMainWindow::create(WId, bool initializeWindow, bool destroyOldWindow)

This method is protected and can only be called from inside a derived class.

qt_destroy

Signature: void qt_destroy (bool destroyWindow = true, bool destroySubWindows = true)

Description: Method void QMainWindow::destroy(bool destroyWindow, bool destroySubWindows)

This method is protected and can only be called from inside a derived class.

receivers

Signature: [const] int receivers (string signal)

Description: Method int QMainWindow::receivers(const char *signal)

This method is protected and can only be called from inside a derived class.

redirected

Signature: [const] QPaintDevice ptr redirected (QPoint ptr offset)

Description: Virtual method QPaintDevice *QMainWindow::redirected(QPoint *offset)

This method can be reimplemented in a derived class.

removeDockWidget

Signature: void removeDockWidget (QDockWidget ptr dockwidget)

Description: Method void QMainWindow::removeDockWidget(QDockWidget *dockwidget)

removeToolBar

Signature: void removeToolBar (QToolBar ptr toolbar)

Description: Method void QMainWindow::removeToolBar(QToolBar *toolbar)

removeToolBarBreak

Signature: void removeToolBarBreak (QToolBar ptr before)

Description: Method void QMainWindow::removeToolBarBreak(QToolBar *before)

resizeDocks

Signature: void resizeDocks (QDockWidget ptr[] docks, int[] sizes, const Qt_Orientation orientation)

Description: Method void QMainWindow::resizeDocks(const QList<QDockWidget *> &docks, const QList<int> &sizes, Qt::Orientation orientation)

resizeEvent

Signature: void resizeEvent (QResizeEvent ptr event)

Description: Virtual method void QMainWindow::resizeEvent(QResizeEvent *event)

This method can be reimplemented in a derived class.

restoreDockWidget

Signature: bool restoreDockWidget (QDockWidget ptr dockwidget)

Description: Method bool QMainWindow::restoreDockWidget(QDockWidget *dockwidget)

restoreState

Signature: bool restoreState (bytes state, int version = 0)

Description: Method bool QMainWindow::restoreState(const QByteArray &state, int version)

saveState

Signature: [const] bytes saveState (int version = 0)

Description: Method QByteArray QMainWindow::saveState(int version)

sender

Signature: [const] QObject ptr sender

Description: Method QObject *QMainWindow::sender()

This method is protected and can only be called from inside a derived class.

senderSignalIndex

Signature: [const] int senderSignalIndex

Description: Method int QMainWindow::senderSignalIndex()

This method is protected and can only be called from inside a derived class.

setAnimated

Signature: void setAnimated (bool enabled)

Description: Method void QMainWindow::setAnimated(bool enabled)

Python specific notes:
The object exposes a writable attribute 'animated'. This is the setter.

setCentralWidget

Signature: void setCentralWidget (QWidget ptr widget)

Description: Method void QMainWindow::setCentralWidget(QWidget *widget)

Python specific notes:
The object exposes a writable attribute 'centralWidget'. This is the setter.

setCorner

Signature: void setCorner (const Qt_Corner corner, const Qt_DockWidgetArea area)

Description: Method void QMainWindow::setCorner(Qt::Corner corner, Qt::DockWidgetArea area)

setDockNestingEnabled

Signature: void setDockNestingEnabled (bool enabled)

Description: Method void QMainWindow::setDockNestingEnabled(bool enabled)

Python specific notes:
The object exposes a writable attribute 'dockNestingEnabled'. This is the setter.

setDockOptions

Signature: void setDockOptions (QMainWindow_QFlags_DockOption options)

Description: Method void QMainWindow::setDockOptions(QFlags<QMainWindow::DockOption> options)

Python specific notes:
The object exposes a writable attribute 'dockOptions'. This is the setter.

setDocumentMode

Signature: void setDocumentMode (bool enabled)

Description: Method void QMainWindow::setDocumentMode(bool enabled)

Python specific notes:
The object exposes a writable attribute 'documentMode'. This is the setter.

setIconSize

Signature: void setIconSize (const QSize iconSize)

Description: Method void QMainWindow::setIconSize(const QSize &iconSize)

Python specific notes:
The object exposes a writable attribute 'iconSize'. This is the setter.

setMenuBar

Signature: void setMenuBar (QMenuBar ptr menubar)

Description: Method void QMainWindow::setMenuBar(QMenuBar *menubar)

Python specific notes:
The object exposes a writable attribute 'menuBar'. This is the setter.

setMenuWidget

Signature: void setMenuWidget (QWidget ptr menubar)

Description: Method void QMainWindow::setMenuWidget(QWidget *menubar)

Python specific notes:
The object exposes a writable attribute 'menuWidget'. This is the setter.

setStatusBar

Signature: void setStatusBar (QStatusBar ptr statusbar)

Description: Method void QMainWindow::setStatusBar(QStatusBar *statusbar)

Python specific notes:
The object exposes a writable attribute 'statusBar'. This is the setter.

setTabPosition

Signature: void setTabPosition (Qt_QFlags_DockWidgetArea areas, const QTabWidget_TabPosition tabPosition)

Description: Method void QMainWindow::setTabPosition(QFlags<Qt::DockWidgetArea> areas, QTabWidget::TabPosition tabPosition)

setTabShape

Signature: void setTabShape (const QTabWidget_TabShape tabShape)

Description: Method void QMainWindow::setTabShape(QTabWidget::TabShape tabShape)

Python specific notes:
The object exposes a writable attribute 'tabShape'. This is the setter.

setToolButtonStyle

Signature: void setToolButtonStyle (const Qt_ToolButtonStyle toolButtonStyle)

Description: Method void QMainWindow::setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle)

Python specific notes:
The object exposes a writable attribute 'toolButtonStyle'. This is the setter.

setUnifiedTitleAndToolBarOnMac

Signature: void setUnifiedTitleAndToolBarOnMac (bool set)

Description: Method void QMainWindow::setUnifiedTitleAndToolBarOnMac(bool set)

Python specific notes:
The object exposes a writable attribute 'unifiedTitleAndToolBarOnMac'. This is the setter.

setVisible

Signature: void setVisible (bool visible)

Description: Virtual method void QMainWindow::setVisible(bool visible)

This method can be reimplemented in a derived class.

sharedPainter

Signature: [const] QPainter ptr sharedPainter

Description: Virtual method QPainter *QMainWindow::sharedPainter()

This method can be reimplemented in a derived class.

showEvent

Signature: void showEvent (QShowEvent ptr event)

Description: Virtual method void QMainWindow::showEvent(QShowEvent *event)

This method can be reimplemented in a derived class.

sizeHint

Signature: [const] QSize sizeHint

Description: Virtual method QSize QMainWindow::sizeHint()

This method can be reimplemented in a derived class.

splitDockWidget

Signature: void splitDockWidget (QDockWidget ptr after, QDockWidget ptr dockwidget, const Qt_Orientation orientation)

Description: Method void QMainWindow::splitDockWidget(QDockWidget *after, QDockWidget *dockwidget, Qt::Orientation orientation)

staticMetaObject

Signature: [static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

statusBar

Signature: [const] QStatusBar ptr statusBar

Description: Method QStatusBar *QMainWindow::statusBar()

Python specific notes:
The object exposes a readable attribute 'statusBar'. This is the getter.

statusBar=

Signature: void statusBar= (QStatusBar ptr statusbar)

Description: Method void QMainWindow::setStatusBar(QStatusBar *statusbar)

Python specific notes:
The object exposes a writable attribute 'statusBar'. This is the setter.

tabPosition

Signature: [const] QTabWidget_TabPosition tabPosition (const Qt_DockWidgetArea area)

Description: Method QTabWidget::TabPosition QMainWindow::tabPosition(Qt::DockWidgetArea area)

tabShape

Signature: [const] QTabWidget_TabShape tabShape

Description: Method QTabWidget::TabShape QMainWindow::tabShape()

Python specific notes:
The object exposes a readable attribute 'tabShape'. This is the getter.

tabShape=

Signature: void tabShape= (const QTabWidget_TabShape tabShape)

Description: Method void QMainWindow::setTabShape(QTabWidget::TabShape tabShape)

Python specific notes:
The object exposes a writable attribute 'tabShape'. This is the setter.

tabifiedDockWidgetActivated

Signature: [signal] void tabifiedDockWidgetActivated (QDockWidget ptr dockWidget)

Description: Signal declaration for QMainWindow::tabifiedDockWidgetActivated(QDockWidget *dockWidget)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'tabifiedDockWidgetActivated'. This is the getter.
The object exposes a writable attribute 'tabifiedDockWidgetActivated'. This is the setter.

tabifiedDockWidgets

Signature: [const] QDockWidget ptr[] tabifiedDockWidgets (QDockWidget ptr dockwidget)

Description: Method QList<QDockWidget*> QMainWindow::tabifiedDockWidgets(QDockWidget *dockwidget)

tabifyDockWidget

Signature: void tabifyDockWidget (QDockWidget ptr first, QDockWidget ptr second)

Description: Method void QMainWindow::tabifyDockWidget(QDockWidget *first, QDockWidget *second)

tabletEvent

Signature: void tabletEvent (QTabletEvent ptr event)

Description: Virtual method void QMainWindow::tabletEvent(QTabletEvent *event)

This method can be reimplemented in a derived class.

takeCentralWidget

Signature: QWidget ptr takeCentralWidget

Description: Method QWidget *QMainWindow::takeCentralWidget()

timerEvent

Signature: void timerEvent (QTimerEvent ptr event)

Description: Virtual method void QMainWindow::timerEvent(QTimerEvent *event)

This method can be reimplemented in a derived class.

toolBarArea

Signature: [const] Qt_ToolBarArea toolBarArea (QToolBar ptr toolbar)

Description: Method Qt::ToolBarArea QMainWindow::toolBarArea(QToolBar *toolbar)

toolBarBreak

Signature: [const] bool toolBarBreak (QToolBar ptr toolbar)

Description: Method bool QMainWindow::toolBarBreak(QToolBar *toolbar)

toolButtonStyle

Signature: [const] Qt_ToolButtonStyle toolButtonStyle

Description: Method Qt::ToolButtonStyle QMainWindow::toolButtonStyle()

Python specific notes:
The object exposes a readable attribute 'toolButtonStyle'. This is the getter.

toolButtonStyle=

Signature: void toolButtonStyle= (const Qt_ToolButtonStyle toolButtonStyle)

Description: Method void QMainWindow::setToolButtonStyle(Qt::ToolButtonStyle toolButtonStyle)

Python specific notes:
The object exposes a writable attribute 'toolButtonStyle'. This is the setter.

toolButtonStyleChanged

Signature: [signal] void toolButtonStyleChanged (const Qt_ToolButtonStyle toolButtonStyle)

Description: Signal declaration for QMainWindow::toolButtonStyleChanged(Qt::ToolButtonStyle toolButtonStyle)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'toolButtonStyleChanged'. This is the getter.
The object exposes a writable attribute 'toolButtonStyleChanged'. This is the setter.

tr

Signature: [static] string tr (string s, string c = nullptr, int n = -1)

Description: Static method QString QMainWindow::tr(const char *s, const char *c, int n)

This method is static and can be called without an instance.

trUtf8

Signature: [static] string trUtf8 (string s, string c = nullptr, int n = -1)

Description: Static method QString QMainWindow::trUtf8(const char *s, const char *c, int n)

This method is static and can be called without an instance.

unifiedTitleAndToolBarOnMac

Signature: [const] bool unifiedTitleAndToolBarOnMac

Description: Method bool QMainWindow::unifiedTitleAndToolBarOnMac()

Python specific notes:
The object exposes a readable attribute 'unifiedTitleAndToolBarOnMac'. This is the getter.

unifiedTitleAndToolBarOnMac=

Signature: void unifiedTitleAndToolBarOnMac= (bool set)

Description: Method void QMainWindow::setUnifiedTitleAndToolBarOnMac(bool set)

Python specific notes:
The object exposes a writable attribute 'unifiedTitleAndToolBarOnMac'. This is the setter.

updateMicroFocus

Signature: void updateMicroFocus

Description: Method void QMainWindow::updateMicroFocus()

This method is protected and can only be called from inside a derived class.

wheelEvent

Signature: void wheelEvent (QWheelEvent ptr event)

Description: Virtual method void QMainWindow::wheelEvent(QWheelEvent *event)

This method can be reimplemented in a derived class.

windowIconChanged

Signature: [signal] void windowIconChanged (const QIcon icon)

Description: Signal declaration for QMainWindow::windowIconChanged(const QIcon &icon)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'windowIconChanged'. This is the getter.
The object exposes a writable attribute 'windowIconChanged'. This is the setter.

windowIconTextChanged

Signature: [signal] void windowIconTextChanged (string iconText)

Description: Signal declaration for QMainWindow::windowIconTextChanged(const QString &iconText)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'windowIconTextChanged'. This is the getter.
The object exposes a writable attribute 'windowIconTextChanged'. This is the setter.

windowTitleChanged

Signature: [signal] void windowTitleChanged (string title)

Description: Signal declaration for QMainWindow::windowTitleChanged(const QString &title)

You can bind a procedure to this signal.

Python specific notes:
The object exposes a readable attribute 'windowTitleChanged'. This is the getter.
The object exposes a writable attribute 'windowTitleChanged'. This is the setter.