API reference - Class QMainWindow

Notation used in Ruby API documentation

Description: Binding of QMainWindow

Class hierarchy: QMainWindow » QWidget » QObject

Sub-classes: DockOption

Public constructors

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

Public methods

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)
[virtual]QMenu ptrcreatePopupMenuVirtual method QMenu *QMainWindow::createPopupMenu()
[event]voidcustomContextMenuRequested(const QPoint pos)Signal declaration for QMainWindow::customContextMenuRequested(const QPoint &pos)
[event]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=(const 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)
[virtual]booleventFilter(QObject ptr arg1,
QEvent ptr arg2)
Virtual method bool QMainWindow::eventFilter(QObject *, QEvent *)
[virtual,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)
[event]voidiconSizeChanged(const QSize iconSize)Signal declaration for QMainWindow::iconSizeChanged(const QSize &iconSize)
[virtual,const]QVariantinputMethodQuery(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)
[virtual,const]QSizeminimumSizeHintVirtual method QSize QMainWindow::minimumSizeHint()
[virtual,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)
boolrestoreDockWidget(QDockWidget ptr dockwidget)Method bool QMainWindow::restoreDockWidget(QDockWidget *dockwidget)
boolrestoreState(string state,
int version = 0)
Method bool QMainWindow::restoreState(const QByteArray &state, int version)
[const]stringsaveState(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(const 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(const 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)
[virtual]voidsetVisible(bool visible)Virtual method void QMainWindow::setVisible(bool visible)
[virtual,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)
[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)
[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)
[event]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)

Public static methods and constants

[static,const]new QMainWindow_DockOption ptrAllowNestedDocksEnum constant QMainWindow::AllowNestedDocks
[static,const]new QMainWindow_DockOption ptrAllowTabbedDocksEnum constant QMainWindow::AllowTabbedDocks
[static,const]new QMainWindow_DockOption ptrAnimatedDocksEnum constant QMainWindow::AnimatedDocks
[static,const]new QMainWindow_DockOption ptrForceTabbedDocksEnum constant QMainWindow::ForceTabbedDocks
[static,const]new QMainWindow_DockOption ptrVerticalTabsEnum constant QMainWindow::VerticalTabs
QMetaObjectstaticMetaObjectObtains the static MetaObject for this class.
stringtr(string s,
string c = 0)
Static method QString QMainWindow::tr(const char *s, const char *c)
stringtr(string s,
string c,
int n)
Static method QString QMainWindow::tr(const char *s, const char *c, int n)
stringtrUtf8(string s,
string c = 0)
Static method QString QMainWindow::trUtf8(const char *s, const char *c)
stringtrUtf8(string s,
string c,
int n)
Static method QString QMainWindow::trUtf8(const char *s, const char *c, int n)

Protected methods (static, non-static and constructors)

[virtual]voidactionEvent(QActionEvent ptr arg1)Virtual method void QMainWindow::actionEvent(QActionEvent *)
[virtual]voidchangeEvent(QEvent ptr arg1)Virtual method void QMainWindow::changeEvent(QEvent *)
[virtual]voidchildEvent(QChildEvent ptr arg1)Virtual method void QMainWindow::childEvent(QChildEvent *)
[virtual]voidcloseEvent(QCloseEvent ptr arg1)Virtual method void QMainWindow::closeEvent(QCloseEvent *)
[virtual]voidcontextMenuEvent(QContextMenuEvent ptr event)Virtual method void QMainWindow::contextMenuEvent(QContextMenuEvent *event)
[virtual]voidcustomEvent(QEvent ptr arg1)Virtual method void QMainWindow::customEvent(QEvent *)
[virtual]voiddisconnectNotify(string signal)Virtual method void QMainWindow::disconnectNotify(const char *signal)
[virtual]voiddragEnterEvent(QDragEnterEvent ptr arg1)Virtual method void QMainWindow::dragEnterEvent(QDragEnterEvent *)
[virtual]voiddragLeaveEvent(QDragLeaveEvent ptr arg1)Virtual method void QMainWindow::dragLeaveEvent(QDragLeaveEvent *)
[virtual]voiddragMoveEvent(QDragMoveEvent ptr arg1)Virtual method void QMainWindow::dragMoveEvent(QDragMoveEvent *)
[virtual]voiddropEvent(QDropEvent ptr arg1)Virtual method void QMainWindow::dropEvent(QDropEvent *)
[virtual]voidenabledChange(bool arg1)Virtual method void QMainWindow::enabledChange(bool)
[virtual]voidenterEvent(QEvent ptr arg1)Virtual method void QMainWindow::enterEvent(QEvent *)
[virtual]boolevent(QEvent ptr event)Virtual method bool QMainWindow::event(QEvent *event)
[virtual]voidfocusInEvent(QFocusEvent ptr arg1)Virtual method void QMainWindow::focusInEvent(QFocusEvent *)
boolfocusNextChildMethod bool QMainWindow::focusNextChild()
[virtual]boolfocusNextPrevChild(bool next)Virtual method bool QMainWindow::focusNextPrevChild(bool next)
[virtual]voidfocusOutEvent(QFocusEvent ptr arg1)Virtual method void QMainWindow::focusOutEvent(QFocusEvent *)
boolfocusPreviousChildMethod bool QMainWindow::focusPreviousChild()
[virtual]voidfontChange(const QFont arg1)Virtual method void QMainWindow::fontChange(const QFont &)
[virtual]voidhideEvent(QHideEvent ptr arg1)Virtual method void QMainWindow::hideEvent(QHideEvent *)
[virtual]voidinputMethodEvent(QInputMethodEvent ptr arg1)Virtual method void QMainWindow::inputMethodEvent(QInputMethodEvent *)
[virtual]voidkeyPressEvent(QKeyEvent ptr arg1)Virtual method void QMainWindow::keyPressEvent(QKeyEvent *)
[virtual]voidkeyReleaseEvent(QKeyEvent ptr arg1)Virtual method void QMainWindow::keyReleaseEvent(QKeyEvent *)
[virtual]voidlanguageChangeVirtual method void QMainWindow::languageChange()
[virtual]voidleaveEvent(QEvent ptr arg1)Virtual method void QMainWindow::leaveEvent(QEvent *)
[virtual,const]intmetric(const QPaintDevice_PaintDeviceMetric arg1)Virtual method int QMainWindow::metric(QPaintDevice::PaintDeviceMetric)
[virtual]voidmouseDoubleClickEvent(QMouseEvent ptr arg1)Virtual method void QMainWindow::mouseDoubleClickEvent(QMouseEvent *)
[virtual]voidmouseMoveEvent(QMouseEvent ptr arg1)Virtual method void QMainWindow::mouseMoveEvent(QMouseEvent *)
[virtual]voidmousePressEvent(QMouseEvent ptr arg1)Virtual method void QMainWindow::mousePressEvent(QMouseEvent *)
[virtual]voidmouseReleaseEvent(QMouseEvent ptr arg1)Virtual method void QMainWindow::mouseReleaseEvent(QMouseEvent *)
[virtual]voidmoveEvent(QMoveEvent ptr arg1)Virtual method void QMainWindow::moveEvent(QMoveEvent *)
[virtual]voidpaintEvent(QPaintEvent ptr arg1)Virtual method void QMainWindow::paintEvent(QPaintEvent *)
[virtual]voidpaletteChange(const QPalette arg1)Virtual method void QMainWindow::paletteChange(const QPalette &)
voidqt_create(unsigned 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)
voidresetInputContextMethod void QMainWindow::resetInputContext()
[virtual]voidresizeEvent(QResizeEvent ptr arg1)Virtual method void QMainWindow::resizeEvent(QResizeEvent *)
[const]QObject ptrsenderMethod QObject *QMainWindow::sender()
[virtual]voidshowEvent(QShowEvent ptr arg1)Virtual method void QMainWindow::showEvent(QShowEvent *)
[virtual]voidstyleChange(QStyle arg1)Virtual method void QMainWindow::styleChange(QStyle &)
[virtual]voidtabletEvent(QTabletEvent ptr arg1)Virtual method void QMainWindow::tabletEvent(QTabletEvent *)
[virtual]voidtimerEvent(QTimerEvent ptr arg1)Virtual method void QMainWindow::timerEvent(QTimerEvent *)
voidupdateMicroFocusMethod void QMainWindow::updateMicroFocus()
[virtual]voidwheelEvent(QWheelEvent ptr arg1)Virtual method void QMainWindow::wheelEvent(QWheelEvent *)
[virtual]voidwindowActivationChange(bool arg1)Virtual method void QMainWindow::windowActivationChange(bool)

Deprecated methods (protected, public, static, non-static and constructors)

voidcreateUse of this method is deprecated. Use _create instead
voiddestroyUse of this method is deprecated. Use _destroy instead
[const]booldestroyed?Use of this method is deprecated. Use _destroyed? instead
[const]boolis_const_object?Use of this method is deprecated. Use _is_const_object? instead

Detailed description

[static,const] new QMainWindow_DockOption ptr AllowNestedDocks

Description: Enum constant QMainWindow::AllowNestedDocks

[static,const] new QMainWindow_DockOption ptr AllowTabbedDocks

Description: Enum constant QMainWindow::AllowTabbedDocks

[static,const] new QMainWindow_DockOption ptr AnimatedDocks

Description: Enum constant QMainWindow::AnimatedDocks

[static,const] new QMainWindow_DockOption ptr ForceTabbedDocks

Description: Enum constant QMainWindow::ForceTabbedDocks

[static,const] new QMainWindow_DockOption ptr VerticalTabs

Description: Enum constant QMainWindow::VerticalTabs

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.

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.

[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.

[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.

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.

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.

[virtual] void actionEvent(QActionEvent ptr arg1)

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

This method can be reimplemented in a derived class.

void addDockWidget(const Qt_DockWidgetArea area,QDockWidget ptr dockwidget)

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

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)

void addToolBar(const Qt_ToolBarArea area,QToolBar ptr toolbar)

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

void addToolBar(QToolBar ptr toolbar)

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

QToolBar ptr addToolBar(string title)

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

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

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

[const] bool animated

Description: Method bool QMainWindow::isAnimated()

Python specific notes:

The object exposes a readable attribute 'animated'. This is the getter.

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.

[const] QWidget ptr centralWidget

Description: Method QWidget *QMainWindow::centralWidget()

Python specific notes:

The object exposes a readable attribute 'centralWidget'. This is the getter.

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.

[virtual] void changeEvent(QEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void childEvent(QChildEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void closeEvent(QCloseEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void contextMenuEvent(QContextMenuEvent ptr event)

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

This method can be reimplemented in a derived class.

[const] Qt_DockWidgetArea corner(const Qt_Corner corner)

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

void create

Description: Ensures the C++ object is created

Use of this method is deprecated. Use _create instead

[virtual] QMenu ptr createPopupMenu

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

This method can be reimplemented in a derived class.

[event] void customContextMenuRequested(const QPoint pos)

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

You can bind a procedure to this signal.

[virtual] void customEvent(QEvent ptr arg1)

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

This method can be reimplemented in a derived class.

void destroy

Description: Explicitly destroys the object

Use of this method is deprecated. Use _destroy instead

[event] void destroyed(QObject ptr arg1)

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

You can bind a procedure to this signal.

[const] bool destroyed?

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

Use of this method is deprecated. Use _destroyed? instead

[virtual] void disconnectNotify(string signal)

Description: Virtual method void QMainWindow::disconnectNotify(const char *signal)

This method can be reimplemented in a derived class.

[const] bool dockNestingEnabled

Description: Method bool QMainWindow::isDockNestingEnabled()

Python specific notes:

The object exposes a readable attribute 'dockNestingEnabled'. This is the getter.

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.

[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.

void dockOptions=(const 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.

[const] Qt_DockWidgetArea dockWidgetArea(QDockWidget ptr dockwidget)

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

[const] bool documentMode

Description: Method bool QMainWindow::documentMode()

Python specific notes:

The object exposes a readable attribute 'documentMode'. This is the getter.

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.

[virtual] void dragEnterEvent(QDragEnterEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void dragLeaveEvent(QDragLeaveEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void dragMoveEvent(QDragMoveEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void dropEvent(QDropEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void enabledChange(bool arg1)

Description: Virtual method void QMainWindow::enabledChange(bool)

This method can be reimplemented in a derived class.

[virtual] void enterEvent(QEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] bool event(QEvent ptr event)

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

This method can be reimplemented in a derived class.

[virtual] bool eventFilter(QObject ptr arg1,QEvent ptr arg2)

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

This method can be reimplemented in a derived class.

[virtual] void focusInEvent(QFocusEvent ptr arg1)

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

This method can be reimplemented in a derived class.

bool focusNextChild

Description: Method bool QMainWindow::focusNextChild()

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

[virtual] bool focusNextPrevChild(bool next)

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

This method can be reimplemented in a derived class.

[virtual] void focusOutEvent(QFocusEvent ptr arg1)

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

This method can be reimplemented in a derived class.

bool focusPreviousChild

Description: Method bool QMainWindow::focusPreviousChild()

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

[virtual] void fontChange(const QFont arg1)

Description: Virtual method void QMainWindow::fontChange(const QFont &)

This method can be reimplemented in a derived class.

[virtual,const] int heightForWidth(int arg1)

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

This method can be reimplemented in a derived class.

[virtual] void hideEvent(QHideEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[const] QSize iconSize

Description: Method QSize QMainWindow::iconSize()

Python specific notes:

The object exposes a readable attribute 'iconSize'. This is the getter.

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.

[event] void iconSizeChanged(const QSize iconSize)

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

You can bind a procedure to this signal.

[virtual] void inputMethodEvent(QInputMethodEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual,const] QVariant inputMethodQuery(const Qt_InputMethodQuery arg1)

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

This method can be reimplemented in a derived class.

void insertToolBar(QToolBar ptr before,QToolBar ptr toolbar)

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

void insertToolBarBreak(QToolBar ptr before)

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

[const] bool isAnimated?

Description: Method bool QMainWindow::isAnimated()

Python specific notes:

The object exposes a readable attribute 'animated'. This is the getter.

[const] bool isDockNestingEnabled?

Description: Method bool QMainWindow::isDockNestingEnabled()

Python specific notes:

The object exposes a readable attribute 'dockNestingEnabled'. This is the getter.

[const] bool isSeparator?(const QPoint pos)

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

[const] bool is_const_object?

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

Use of this method is deprecated. Use _is_const_object? instead

[virtual] void keyPressEvent(QKeyEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void keyReleaseEvent(QKeyEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void languageChange

Description: Virtual method void QMainWindow::languageChange()

This method can be reimplemented in a derived class.

[virtual] void leaveEvent(QEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[const] QMenuBar ptr menuBar

Description: Method QMenuBar *QMainWindow::menuBar()

Python specific notes:

The object exposes a readable attribute 'menuBar'. This is the getter.

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.

[const] QWidget ptr menuWidget

Description: Method QWidget *QMainWindow::menuWidget()

Python specific notes:

The object exposes a readable attribute 'menuWidget'. This is the getter.

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.

[virtual,const] int metric(const QPaintDevice_PaintDeviceMetric arg1)

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

This method can be reimplemented in a derived class.

[virtual,const] QSize minimumSizeHint

Description: Virtual method QSize QMainWindow::minimumSizeHint()

This method can be reimplemented in a derived class.

[virtual] void mouseDoubleClickEvent(QMouseEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void mouseMoveEvent(QMouseEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void mousePressEvent(QMouseEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void mouseReleaseEvent(QMouseEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void moveEvent(QMoveEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[static] new QMainWindow new(QWidget ptr parent = 0,const Qt_QFlags_WindowType flags = 0)

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

[virtual,const] QPaintEngine ptr paintEngine

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

This method can be reimplemented in a derived class.

[virtual] void paintEvent(QPaintEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void paletteChange(const QPalette arg1)

Description: Virtual method void QMainWindow::paletteChange(const QPalette &)

This method can be reimplemented in a derived class.

void qt_create(unsigned 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.

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.

[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.

void removeDockWidget(QDockWidget ptr dockwidget)

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

void removeToolBar(QToolBar ptr toolbar)

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

void removeToolBarBreak(QToolBar ptr before)

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

void resetInputContext

Description: Method void QMainWindow::resetInputContext()

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

[virtual] void resizeEvent(QResizeEvent ptr arg1)

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

This method can be reimplemented in a derived class.

bool restoreDockWidget(QDockWidget ptr dockwidget)

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

bool restoreState(string state,int version = 0)

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

[const] string saveState(int version = 0)

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

[const] QObject ptr sender

Description: Method QObject *QMainWindow::sender()

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

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.

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.

void setCorner(const Qt_Corner corner,const Qt_DockWidgetArea area)

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

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.

void setDockOptions(const 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.

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.

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.

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.

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.

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.

void setTabPosition(const Qt_QFlags_DockWidgetArea areas,const QTabWidget_TabPosition tabPosition)

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

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.

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.

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.

[virtual] void setVisible(bool visible)

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

This method can be reimplemented in a derived class.

[virtual] void showEvent(QShowEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual,const] QSize sizeHint

Description: Virtual method QSize QMainWindow::sizeHint()

This method can be reimplemented in a derived class.

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

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

[static] QMetaObject staticMetaObject

Description: Obtains the static MetaObject for this class.

[const] QStatusBar ptr statusBar

Description: Method QStatusBar *QMainWindow::statusBar()

Python specific notes:

The object exposes a readable attribute 'statusBar'. This is the getter.

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.

[virtual] void styleChange(QStyle arg1)

Description: Virtual method void QMainWindow::styleChange(QStyle &)

This method can be reimplemented in a derived class.

[const] QTabWidget_TabPosition tabPosition(const Qt_DockWidgetArea area)

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

[const] QTabWidget_TabShape tabShape

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

Python specific notes:

The object exposes a readable attribute 'tabShape'. This is the getter.

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.

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

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

void tabifyDockWidget(QDockWidget ptr first,QDockWidget ptr second)

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

[virtual] void tabletEvent(QTabletEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void timerEvent(QTimerEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[const] Qt_ToolBarArea toolBarArea(QToolBar ptr toolbar)

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

[const] bool toolBarBreak(QToolBar ptr toolbar)

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

[const] Qt_ToolButtonStyle toolButtonStyle

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

Python specific notes:

The object exposes a readable attribute 'toolButtonStyle'. This is the getter.

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.

[event] void toolButtonStyleChanged(const Qt_ToolButtonStyle toolButtonStyle)

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

You can bind a procedure to this signal.

[static] string tr(string s,string c = 0)

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

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

[static] string tr(string s,string c,int n)

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.

[static] string trUtf8(string s,string c = 0)

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

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

[static] string trUtf8(string s,string c,int n)

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.

[const] bool unifiedTitleAndToolBarOnMac

Description: Method bool QMainWindow::unifiedTitleAndToolBarOnMac()

Python specific notes:

The object exposes a readable attribute 'unifiedTitleAndToolBarOnMac'. This is the getter.

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.

void updateMicroFocus

Description: Method void QMainWindow::updateMicroFocus()

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

[virtual] void wheelEvent(QWheelEvent ptr arg1)

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

This method can be reimplemented in a derived class.

[virtual] void windowActivationChange(bool arg1)

Description: Virtual method void QMainWindow::windowActivationChange(bool)

This method can be reimplemented in a derived class.