<class name="QMainWindow" doc="/**
&lt;p&gt;The &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; class provides a main application window.&lt;/p&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;#qt-main-window-framework&quot;&gt;Qt Main Window Framework&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#creating-main-window-components&quot;&gt;Creating Main Window Components&lt;/a&gt;&lt;/li&gt;
&lt;ul&gt;&lt;li&gt;&lt;a href=&quot;#creating-menus&quot;&gt;Creating Menus&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#creating-toolbars&quot;&gt;Creating Toolbars&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#creating-dock-widgets&quot;&gt;Creating Dock Widgets&lt;/a&gt;&lt;/li&gt;
&lt;li&gt;&lt;a href=&quot;#the-status-bar&quot;&gt;The Status Bar&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&lt;a href=&quot;#storing-state&quot;&gt;Storing State&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;a name=&quot;qt-main-window-framework&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Qt Main Window Framework&lt;/h3&gt;
&lt;p&gt;A main window provides a framework for building an application's user interface. Qt has &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; and its related classes&lt;/tt&gt; for main window management. &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; has its own layout to which you can add &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt;s, &lt;a href=&quot;QDockWidget.html&quot;&gt;&lt;tt&gt;QDockWidget&lt;/tt&gt;&lt;/a&gt;s, a &lt;a href=&quot;QMenuBar.html&quot;&gt;&lt;tt&gt;QMenuBar&lt;/tt&gt;&lt;/a&gt;, and a &lt;a href=&quot;QStatusBar.html&quot;&gt;&lt;tt&gt;QStatusBar&lt;/tt&gt;&lt;/a&gt;. The layout has a center area that can be occupied by any kind of widget. You can see an image of the layout below.&lt;/p&gt;
&lt;p align=&quot;center&quot;&gt;&lt;img src=&quot;%2E%2E/images/mainwindowlayout.png&quot; /&gt;&lt;/p&gt;&lt;a name=&quot;creating-main-window-components&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Creating Main Window Components&lt;/h3&gt;
&lt;p&gt;A central widget will typically be a standard Qt widget such as a &lt;a href=&quot;QTextEdit.html&quot;&gt;&lt;tt&gt;QTextEdit&lt;/tt&gt;&lt;/a&gt; or a &lt;a href=&quot;QGraphicsView.html&quot;&gt;&lt;tt&gt;QGraphicsView&lt;/tt&gt;&lt;/a&gt;. Custom widgets can also be used for advanced applications. You set the central widget with &lt;tt&gt;setCentralWidget()&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Main windows have either a single (SDI) or multiple (MDI) document interface. You create MDI applications in Qt by using a &lt;a href=&quot;QMdiArea.html&quot;&gt;&lt;tt&gt;QMdiArea&lt;/tt&gt;&lt;/a&gt; as the central widget.&lt;/p&gt;
&lt;p&gt;We will now examine each of the other widgets that can be added to a main window. We give examples on how to create and add them.&lt;/p&gt;
&lt;a name=&quot;creating-menus&quot;&gt;&lt;/a&gt;
&lt;h4&gt;Creating Menus&lt;/h4&gt;
&lt;p&gt;Qt implements menus in &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; keeps them in a &lt;a href=&quot;QMenuBar.html&quot;&gt;&lt;tt&gt;QMenuBar&lt;/tt&gt;&lt;/a&gt;. &lt;a href=&quot;QAction.html&quot;&gt;QAction&lt;/a&gt;s are added to the menus, which display them as menu items.&lt;/p&gt;
&lt;p&gt;You can add new menus to the main window's menu bar by calling &lt;tt&gt;menuBar()&lt;/tt&gt;, which returns the &lt;a href=&quot;QMenuBar.html&quot;&gt;&lt;tt&gt;QMenuBar&lt;/tt&gt;&lt;/a&gt; for the window, and then add a menu with QMenuBar::addMenu().&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; comes with a default menu bar, but you can also set one yourself with &lt;tt&gt;setMenuBar()&lt;/tt&gt;. If you wish to implement a custom menu bar (i.e&amp;#x2e;, not use the &lt;a href=&quot;QMenuBar.html&quot;&gt;&lt;tt&gt;QMenuBar&lt;/tt&gt;&lt;/a&gt; widget), you can set it with &lt;tt&gt;setMenuWidget()&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;An example of how to create menus follows:&lt;/p&gt;
&lt;pre&gt;    void MainWindow::createMenus()
    {
        fileMenu = menuBar()-&amp;gt;addMenu(tr(&amp;quot;&amp;amp;File&amp;quot;));
        fileMenu-&amp;gt;addAction(newAct);
        fileMenu-&amp;gt;addAction(openAct);
        fileMenu-&amp;gt;addAction(saveAct);&lt;/pre&gt;
&lt;p&gt;The &lt;tt&gt;createPopupMenu()&lt;/tt&gt; function creates popup menus when the main window receives context menu events. The default implementation generates a menu with the checkable actions from the dock widgets and toolbars. You can reimplement &lt;tt&gt;createPopupMenu()&lt;/tt&gt; for a custom menu.&lt;/p&gt;
&lt;a name=&quot;creating-toolbars&quot;&gt;&lt;/a&gt;
&lt;h4&gt;Creating Toolbars&lt;/h4&gt;
&lt;p&gt;Toolbars are implemented in the &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt; class. You add a toolbar to a main window with &lt;tt&gt;addToolBar()&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;You control the initial position of toolbars by assigning them to a specific Qt::ToolBarArea. You can split an area by inserting a toolbar break - think of this as a line break in text editing - with &lt;tt&gt;addToolBarBreak()&lt;/tt&gt; or &lt;tt&gt;insertToolBarBreak()&lt;/tt&gt;. You can also restrict placement by the user with QToolBar::setAllowedAreas() and QToolBar::setMovable().&lt;/p&gt;
&lt;p&gt;The size of toolbar icons can be retrieved with &lt;tt&gt;iconSize()&lt;/tt&gt;. The sizes are platform dependent; you can set a fixed size with &lt;tt&gt;setIconSize()&lt;/tt&gt;. You can alter the appearance of all tool buttons in the toolbars with &lt;tt&gt;setToolButtonStyle()&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;An example of toolbar creation follows:&lt;/p&gt;
&lt;pre&gt;    void MainWindow::createToolBars()
    {
        fileToolBar = addToolBar(tr(&amp;quot;File&amp;quot;));
        fileToolBar-&amp;gt;addAction(newAct);&lt;/pre&gt;
&lt;a name=&quot;creating-dock-widgets&quot;&gt;&lt;/a&gt;
&lt;h4&gt;Creating Dock Widgets&lt;/h4&gt;
&lt;p&gt;Dock widgets are implemented in the &lt;a href=&quot;QDockWidget.html&quot;&gt;&lt;tt&gt;QDockWidget&lt;/tt&gt;&lt;/a&gt; class. A dock widget is a window that can be docked into the main window. You add dock widgets to a main window with &lt;tt&gt;addDockWidget()&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;There are four dock widget areas as given by the Qt::DockWidgetArea enum: left, right, top, and bottom. You can specify which dock widget area that should occupy the corners where the areas overlap with &lt;tt&gt;setDockWidgetCorner()&lt;/tt&gt;. By default each area can only contain one row (vertical or horizontal) of dock widgets, but if you enable nesting with &lt;tt&gt;setDockNestingEnabled()&lt;/tt&gt;, dock widgets can be added in either direction.&lt;/p&gt;
&lt;p&gt;Two dock widgets may also be stacked on top of each other. A &lt;a href=&quot;QTabBar.html&quot;&gt;&lt;tt&gt;QTabBar&lt;/tt&gt;&lt;/a&gt; is then used to select which of the widgets that should be displayed.&lt;/p&gt;
&lt;p&gt;We give an example of how to create and add dock widgets to a main window:&lt;/p&gt;
&lt;pre&gt;        QDockWidget *dockWidget = new QDockWidget(tr(&amp;quot;Dock Widget&amp;quot;), this);
        dockWidget-&amp;gt;setAllowedAreas(Qt::LeftDockWidgetArea |
                                    Qt::RightDockWidgetArea);
        dockWidget-&amp;gt;setWidget(dockWidgetContents);
        addDockWidget(Qt::LeftDockWidgetArea, dockWidget);&lt;/pre&gt;
&lt;a name=&quot;the-status-bar&quot;&gt;&lt;/a&gt;
&lt;h4&gt;The Status Bar&lt;/h4&gt;
&lt;p&gt;You can set a status bar with &lt;tt&gt;setStatusBar()&lt;/tt&gt;, but one is created the first time &lt;tt&gt;statusBar()&lt;/tt&gt; (which returns the main window's status bar) is called. See &lt;a href=&quot;QStatusBar.html&quot;&gt;&lt;tt&gt;QStatusBar&lt;/tt&gt;&lt;/a&gt; for information on how to use it.&lt;/p&gt;
&lt;a name=&quot;storing-state&quot;&gt;&lt;/a&gt;
&lt;h3&gt;Storing State&lt;/h3&gt;
&lt;p&gt;&lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; can store the state of its layout with &lt;tt&gt;saveState()&lt;/tt&gt;; it can later be retrieved with &lt;tt&gt;restoreState()&lt;/tt&gt;. It is the position and size (relative to the size of the main window) of the toolbars and dock widgets that are stored.&lt;/p&gt;

@see &lt;a href=&quot;QMenuBar.html&quot;&gt;&lt;tt&gt;QMenuBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QStatusBar.html&quot;&gt;&lt;tt&gt;QStatusBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QDockWidget.html&quot;&gt;&lt;tt&gt;QDockWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-application.html&quot;&gt;Application Example&lt;/tt&gt;&lt;/a&gt;
@see Dock Widgets Example&lt;/tt&gt;
@see MDI Example&lt;/tt&gt;
@see SDI Example&lt;/tt&gt;
@see &lt;a href=&quot;%2E%2E/qtjambi-menus.html&quot;&gt;Menus Example&lt;/tt&gt;&lt;/a&gt; */">
    <signal name="protected final void customContextMenuRequested(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;This signal is emitted when the widget's &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt; is Qt::CustomContextMenu, and the user has requested a context menu on the widget. The position &lt;tt&gt;pos&lt;/tt&gt; is the position of the context menu event that the widget receives. Normally this is in widget coordinates. The exception to this rule is &lt;a href=&quot;QAbstractScrollArea.html&quot;&gt;&lt;tt&gt;QAbstractScrollArea&lt;/tt&gt;&lt;/a&gt; and its subclasses that map the context menu event to coordinates of the viewport()&lt;/tt&gt; .&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QPoint pos)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QWidget.html#mapToGlobal(com.trolltech.qt.core.QPoint)&quot;&gt;&lt;tt&gt;mapToGlobal&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QMenu.html&quot;&gt;&lt;tt&gt;QMenu&lt;/tt&gt;&lt;/a&gt;, &lt;a href=&quot;QWidget.html#contextMenuPolicy()&quot;&gt;&lt;tt&gt;contextMenuPolicy&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void iconSizeChanged(com.trolltech.qt.core.QSize iconSize)" doc="/**
&lt;p&gt;This signal is emitted when the size of the icons used in the window is changed. The new icon size is passed in &lt;tt&gt;iconSize&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;You can connect this signal to other components to help maintain a consistent appearance for your application.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.QSize iconSize)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QMainWindow.html#setIconSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setIconSize&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <signal name="protected final void toolButtonStyleChanged(com.trolltech.qt.core.Qt.ToolButtonStyle toolButtonStyle)" doc="/**
&lt;p&gt;This signal is emitted when the style used for tool buttons in the window is changed. The new style is passed in &lt;tt&gt;toolButtonStyle&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;You can connect this signal to other components to help maintain a consistent appearance for your application.&lt;/p&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;Compatible Slot Signatures:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot(com.trolltech.qt.core.Qt.ToolButtonStyle toolButtonStyle)&lt;/tt&gt;&lt;/dd&gt;
&lt;dd&gt;&lt;tt&gt;void mySlot()&lt;/tt&gt;&lt;/dd&gt;
&lt;/dl&gt;
&lt;dl&gt;
&lt;dt&gt;&lt;b&gt;See Also:&lt;/b&gt;&lt;/dt&gt;
&lt;dd&gt;&lt;a href=&quot;QMainWindow.html#setToolButtonStyle(com.trolltech.qt.core.Qt.ToolButtonStyle)&quot;&gt;&lt;tt&gt;setToolButtonStyle&lt;/tt&gt;&lt;/a&gt;&lt;/dd&gt;
&lt;/dl&gt;
 */"/>
    <method name="public QMainWindow(com.trolltech.qt.gui.QWidget parent, com.trolltech.qt.core.Qt.WindowFlags flags)" doc="/**
&lt;p&gt;Constructs a &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; with the given &lt;tt&gt;parent&lt;/tt&gt; and the specified widget &lt;tt&gt;flags&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public QMainWindow(com.trolltech.qt.gui.QWidget parent)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;parent&lt;/tt&gt;, 0). */"/>
    <method name="public QMainWindow()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt;(0, 0). */"/>
    <method name="public final void addDockWidget(com.trolltech.qt.core.Qt.DockWidgetArea area, com.trolltech.qt.gui.QDockWidget dockwidget, com.trolltech.qt.core.Qt.Orientation orientation)" doc="/**
&lt;p&gt;Adds &lt;tt&gt;dockwidget&lt;/tt&gt; into the given &lt;tt&gt;area&lt;/tt&gt; in the direction specified by the &lt;tt&gt;orientation&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final void addDockWidget(com.trolltech.qt.core.Qt.DockWidgetArea area, com.trolltech.qt.gui.QDockWidget dockwidget)" doc="/**
&lt;p&gt;Adds the given &lt;tt&gt;dockwidget&lt;/tt&gt; to the specified &lt;tt&gt;area&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QToolBar addToolBar(java.lang.String title)" doc="/**
&lt;p&gt;Creates a &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt; object, setting its window title to &lt;tt&gt;title&lt;/tt&gt;, and inserts it into the top toolbar area.&lt;/p&gt;

@see &lt;a href=&quot;QWidget.html#setWindowTitle(java.lang.String)&quot;&gt;&lt;tt&gt;setWindowTitle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addToolBar(com.trolltech.qt.core.Qt.ToolBarArea area, com.trolltech.qt.gui.QToolBar toolbar)" doc="/**
&lt;p&gt;Adds the &lt;tt&gt;toolbar&lt;/tt&gt; into the specified &lt;tt&gt;area&lt;/tt&gt; in this main window. The &lt;tt&gt;toolbar&lt;/tt&gt; is placed at the end of the current tool bar block (i.e&amp;#x2e; line). If the main window already manages &lt;tt&gt;toolbar&lt;/tt&gt; then it will only move the toolbar to &lt;tt&gt;area&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#insertToolBar(com.trolltech.qt.gui.QToolBar, com.trolltech.qt.gui.QToolBar)&quot;&gt;&lt;tt&gt;insertToolBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#addToolBarBreak(com.trolltech.qt.core.Qt.ToolBarArea)&quot;&gt;&lt;tt&gt;addToolBarBreak&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#insertToolBarBreak(com.trolltech.qt.gui.QToolBar)&quot;&gt;&lt;tt&gt;insertToolBarBreak&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void addToolBar(com.trolltech.qt.gui.QToolBar toolbar)" doc="/**
&lt;p&gt;Equivalent of calling &lt;a href=&quot;QMainWindow.html#addToolBar(com.trolltech.qt.gui.QToolBar)&quot;&gt;&lt;tt&gt;addToolBar&lt;/tt&gt;&lt;/a&gt;(Qt::TopToolBarArea, &lt;tt&gt;toolbar&lt;/tt&gt;)&lt;/p&gt;
 */"/>
    <method name="public final void addToolBarBreak(com.trolltech.qt.core.Qt.ToolBarArea area)" doc="/**
&lt;p&gt;Adds a toolbar break to the given &lt;tt&gt;area&lt;/tt&gt; after all the other objects that are present.&lt;/p&gt;
 */"/>
    <method name="public final void addToolBarBreak()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMainWindow.html#addToolBarBreak(com.trolltech.qt.core.Qt.ToolBarArea)&quot;&gt;&lt;tt&gt;addToolBarBreak&lt;/tt&gt;&lt;/a&gt;(Qt::TopToolBarArea). */"/>
    <method name="public final com.trolltech.qt.gui.QWidget centralWidget()" doc="/**
&lt;p&gt;Returns the central widget for the main window. This function returns zero if the central widget has not been set.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#setCentralWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setCentralWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.DockWidgetArea corner(com.trolltech.qt.core.Qt.Corner corner)" doc="/**
&lt;p&gt;Returns the dock widget area that occupies the specified &lt;tt&gt;corner&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#setCorner(com.trolltech.qt.core.Qt.Corner, com.trolltech.qt.core.Qt.DockWidgetArea)&quot;&gt;&lt;tt&gt;setCorner&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QMainWindow.DockOptions dockOptions()" doc="/**
&lt;p&gt;Returns the docking behavior of &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AnimatedDocks&lt;/tt&gt;&lt;/a&gt; | &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AllowTabbedDocks&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#setDockOptions(com.trolltech.qt.gui.QMainWindow.DockOptions)&quot;&gt;&lt;tt&gt;setDockOptions&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.DockWidgetArea dockWidgetArea(com.trolltech.qt.gui.QDockWidget dockwidget)" doc="/**
&lt;p&gt;Returns the Qt::DockWidgetArea for &lt;tt&gt;dockwidget&lt;/tt&gt;. If &lt;tt&gt;dockwidget&lt;/tt&gt; has not been added to the main window, this function returns &lt;tt&gt;Qt::NoDockWidgetArea&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#addDockWidget(com.trolltech.qt.core.Qt.DockWidgetArea, com.trolltech.qt.gui.QDockWidget)&quot;&gt;&lt;tt&gt;addDockWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#splitDockWidget(com.trolltech.qt.gui.QDockWidget, com.trolltech.qt.gui.QDockWidget, com.trolltech.qt.core.Qt.Orientation)&quot;&gt;&lt;tt&gt;splitDockWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::DockWidgetArea&lt;/tt&gt; */"/>
    <method name="public final com.trolltech.qt.core.QSize iconSize()" doc="/**
&lt;p&gt;Returns size of toolbar icons in this mainwindow..&lt;/p&gt;
&lt;p&gt;The default is the default tool bar icon size of the GUI style. Note that the icons used must be at least of this size as the icons are only scaled down.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#setIconSize(com.trolltech.qt.core.QSize)&quot;&gt;&lt;tt&gt;setIconSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertToolBar(com.trolltech.qt.gui.QToolBar before, com.trolltech.qt.gui.QToolBar toolbar)" doc="/**
&lt;p&gt;Inserts the &lt;tt&gt;toolbar&lt;/tt&gt; into the area occupied by the &lt;tt&gt;before&lt;/tt&gt; toolbar so that it appears before it. For example, in normal left-to-right layout operation, this means that &lt;tt&gt;toolbar&lt;/tt&gt; will appear to the left of the toolbar specified by &lt;tt&gt;before&lt;/tt&gt; in a horizontal toolbar area.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#insertToolBarBreak(com.trolltech.qt.gui.QToolBar)&quot;&gt;&lt;tt&gt;insertToolBarBreak&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#addToolBar(com.trolltech.qt.gui.QToolBar)&quot;&gt;&lt;tt&gt;addToolBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#addToolBarBreak(com.trolltech.qt.core.Qt.ToolBarArea)&quot;&gt;&lt;tt&gt;addToolBarBreak&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void insertToolBarBreak(com.trolltech.qt.gui.QToolBar before)" doc="/**
&lt;p&gt;Inserts a toolbar break before the toolbar specified by &lt;tt&gt;before&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean isAnimated()" doc="/**
&lt;p&gt;Returns whether manipulating dock widgets and tool bars is animated.&lt;/p&gt;
&lt;p&gt;When a dock widget or tool bar is dragged over the main window, the main window adjusts its contents to indicate where the dock widget or tool bar will be docked if it is dropped. Setting this property causes &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; to move its contents in a smooth animation. Clearing this property causes the contents to snap into their new positions.&lt;/p&gt;
&lt;p&gt;By default, this property is set. It may be cleared if the main window contains widgets which are slow at resizing or repainting themselves.&lt;/p&gt;
&lt;p&gt;Setting this property is identical to setting the &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AnimatedDocks&lt;/tt&gt;&lt;/a&gt; option using &lt;a href=&quot;QMainWindow.html#setDockOptions(com.trolltech.qt.gui.QMainWindow.DockOptions)&quot;&gt;&lt;tt&gt;setDockOptions&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean isDockNestingEnabled()" doc="/**
&lt;p&gt;Returns whether docks can be nested.&lt;/p&gt;
&lt;p&gt;If this property is false, dock areas can only contain a single row (horizontal or vertical) of dock widgets. If this property is true, the area occupied by a dock widget can be split in either direction to contain more dock widgets.&lt;/p&gt;
&lt;p&gt;Dock nesting is only necessary in applications that contain a lot of dock widgets. It gives the user greater freedom in organizing their main window. However, dock nesting leads to more complex (and less intuitive) behavior when a dock widget is dragged over the main window, since there are more ways in which a dropped dock widget may be placed in the dock area.&lt;/p&gt;
&lt;p&gt;Setting this property is identical to setting the &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AllowNestedDocks&lt;/tt&gt;&lt;/a&gt; option using &lt;a href=&quot;QMainWindow.html#setDockOptions(com.trolltech.qt.gui.QMainWindow.DockOptions)&quot;&gt;&lt;tt&gt;setDockOptions&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean isSeparator(com.trolltech.qt.core.QPoint pos)" doc="/**
&lt;p&gt;&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.gui.QMenuBar menuBar()" doc="/**
&lt;p&gt;Returns the menu bar for the main window. This function creates and returns an empty menu bar if the menu bar does not exist.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#setMenuBar(com.trolltech.qt.gui.QMenuBar)&quot;&gt;&lt;tt&gt;setMenuBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QWidget menuWidget()" doc="/**
&lt;p&gt;Returns the menu bar for the main window. This function returns null if a menu bar hasn't been constructed yet.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#setMenuWidget(com.trolltech.qt.gui.QWidget)&quot;&gt;&lt;tt&gt;setMenuWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void removeDockWidget(com.trolltech.qt.gui.QDockWidget dockwidget)" doc="/**
&lt;p&gt;Removes the &lt;tt&gt;dockwidget&lt;/tt&gt; from the main window layout and hides it. Note that the &lt;tt&gt;dockwidget&lt;/tt&gt; is &lt;i&gt;not&lt;/i&gt; deleted.&lt;/p&gt;
 */"/>
    <method name="public final void removeToolBar(com.trolltech.qt.gui.QToolBar toolbar)" doc="/**
&lt;p&gt;Removes the &lt;tt&gt;toolbar&lt;/tt&gt; from the main window layout and hides it. Note that the &lt;tt&gt;toolbar&lt;/tt&gt; is &lt;i&gt;not&lt;/i&gt; deleted.&lt;/p&gt;
 */"/>
    <method name="public final void removeToolBarBreak(com.trolltech.qt.gui.QToolBar before)" doc="/**
&lt;p&gt;Removes a toolbar break previously inserted before the toolbar specified by &lt;tt&gt;before&lt;/tt&gt;.&lt;/p&gt;
 */"/>
    <method name="public final boolean restoreState(com.trolltech.qt.core.QByteArray state, int version)" doc="/**
&lt;p&gt;Restores the &lt;tt&gt;state&lt;/tt&gt; of this mainwindow's toolbars and dockwidgets. The &lt;tt&gt;version&lt;/tt&gt; number is compared with that stored in &lt;tt&gt;state&lt;/tt&gt;. If they do not match, the mainwindow's state is left unchanged, and this function returns &lt;tt&gt;false&lt;/tt&gt;; otherwise, the state is restored, and this function returns &lt;tt&gt;true&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#saveState(int)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean restoreState(com.trolltech.qt.core.QByteArray state)" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMainWindow.html#restoreState(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;restoreState&lt;/tt&gt;&lt;/a&gt;(&lt;tt&gt;state&lt;/tt&gt;, 0). */"/>
    <method name="public final com.trolltech.qt.core.QByteArray saveState(int version)" doc="/**
&lt;p&gt;Saves the current state of this mainwindow's toolbars and dockwidgets. The &lt;tt&gt;version&lt;/tt&gt; number is stored as part of the data.&lt;/p&gt;
&lt;p&gt;The objectName property is used to identify each &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDockWidget.html&quot;&gt;&lt;tt&gt;QDockWidget&lt;/tt&gt;&lt;/a&gt;. You should make sure that this property is unique for each &lt;a href=&quot;QToolBar.html&quot;&gt;&lt;tt&gt;QToolBar&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QDockWidget.html&quot;&gt;&lt;tt&gt;QDockWidget&lt;/tt&gt;&lt;/a&gt; you add to the &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;To restore the saved state, pass the return value and &lt;tt&gt;version&lt;/tt&gt; number to &lt;a href=&quot;QMainWindow.html#restoreState(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;restoreState&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#restoreState(com.trolltech.qt.core.QByteArray, int)&quot;&gt;&lt;tt&gt;restoreState&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.QByteArray saveState()" doc="/**
&lt;p&gt;Equivalent to &lt;a href=&quot;QMainWindow.html#saveState(int)&quot;&gt;&lt;tt&gt;saveState&lt;/tt&gt;&lt;/a&gt;(0). */"/>
    <method name="public final void setAnimated(boolean enabled)" doc="/**
&lt;p&gt;Sets whether manipulating dock widgets and tool bars is animated to &lt;tt&gt;enabled&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;When a dock widget or tool bar is dragged over the main window, the main window adjusts its contents to indicate where the dock widget or tool bar will be docked if it is dropped. Setting this property causes &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; to move its contents in a smooth animation. Clearing this property causes the contents to snap into their new positions.&lt;/p&gt;
&lt;p&gt;By default, this property is set. It may be cleared if the main window contains widgets which are slow at resizing or repainting themselves.&lt;/p&gt;
&lt;p&gt;Setting this property is identical to setting the &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AnimatedDocks&lt;/tt&gt;&lt;/a&gt; option using &lt;a href=&quot;QMainWindow.html#setDockOptions(com.trolltech.qt.gui.QMainWindow.DockOptions)&quot;&gt;&lt;tt&gt;setDockOptions&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#isAnimated()&quot;&gt;&lt;tt&gt;isAnimated&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCentralWidget(com.trolltech.qt.gui.QWidget widget)" doc="/**
&lt;p&gt;Sets the given &lt;tt&gt;widget&lt;/tt&gt; to be the main window's central widget.&lt;/p&gt;
&lt;p&gt;Note: &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; takes ownership of the &lt;tt&gt;widget&lt;/tt&gt; pointer and deletes it at the appropriate time.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#centralWidget()&quot;&gt;&lt;tt&gt;centralWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setCorner(com.trolltech.qt.core.Qt.Corner corner, com.trolltech.qt.core.Qt.DockWidgetArea area)" doc="/**
&lt;p&gt;Sets the given dock widget &lt;tt&gt;area&lt;/tt&gt; to occupy the specified &lt;tt&gt;corner&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#corner(com.trolltech.qt.core.Qt.Corner)&quot;&gt;&lt;tt&gt;corner&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDockNestingEnabled(boolean enabled)" doc="/**
&lt;p&gt;Sets whether docks can be nested to &lt;tt&gt;enabled&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;If this property is false, dock areas can only contain a single row (horizontal or vertical) of dock widgets. If this property is true, the area occupied by a dock widget can be split in either direction to contain more dock widgets.&lt;/p&gt;
&lt;p&gt;Dock nesting is only necessary in applications that contain a lot of dock widgets. It gives the user greater freedom in organizing their main window. However, dock nesting leads to more complex (and less intuitive) behavior when a dock widget is dragged over the main window, since there are more ways in which a dropped dock widget may be placed in the dock area.&lt;/p&gt;
&lt;p&gt;Setting this property is identical to setting the &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AllowNestedDocks&lt;/tt&gt;&lt;/a&gt; option using &lt;a href=&quot;QMainWindow.html#setDockOptions(com.trolltech.qt.gui.QMainWindow.DockOptions)&quot;&gt;&lt;tt&gt;setDockOptions&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#isDockNestingEnabled()&quot;&gt;&lt;tt&gt;isDockNestingEnabled&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setDockOptions(com.trolltech.qt.gui.QMainWindow.DockOptions options)" doc="/**
&lt;p&gt;Sets the docking behavior of &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; to &lt;tt&gt;options&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default value is &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AnimatedDocks&lt;/tt&gt;&lt;/a&gt; | &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AllowTabbedDocks&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#dockOptions()&quot;&gt;&lt;tt&gt;dockOptions&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setIconSize(com.trolltech.qt.core.QSize iconSize)" doc="/**
&lt;p&gt;Sets size of toolbar icons in this mainwindow. to &lt;tt&gt;iconSize&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is the default tool bar icon size of the GUI style. Note that the icons used must be at least of this size as the icons are only scaled down.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#iconSize()&quot;&gt;&lt;tt&gt;iconSize&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMenuBar(com.trolltech.qt.gui.QMenuBar menubar)" doc="/**
&lt;p&gt;Sets the menu bar for the main window to &lt;tt&gt;menubar&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Note: &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; takes ownership of the &lt;tt&gt;menubar&lt;/tt&gt; pointer and deletes it at the appropriate time.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#menuBar()&quot;&gt;&lt;tt&gt;menuBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setMenuWidget(com.trolltech.qt.gui.QWidget menubar)" doc="/**
&lt;p&gt;Sets the menu bar for the main window to &lt;tt&gt;menubar&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; takes ownership of the &lt;tt&gt;menubar&lt;/tt&gt; pointer and deletes it at the appropriate time.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#menuWidget()&quot;&gt;&lt;tt&gt;menuWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setStatusBar(com.trolltech.qt.gui.QStatusBar statusbar)" doc="/**
&lt;p&gt;Sets the status bar for the main window to &lt;tt&gt;statusbar&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;Setting the status bar to 0 will remove it from the main window. Note that &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt; takes ownership of the &lt;tt&gt;statusbar&lt;/tt&gt; pointer and deletes it at the appropriate time.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#statusBar()&quot;&gt;&lt;tt&gt;statusBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setToolButtonStyle(com.trolltech.qt.core.Qt.ToolButtonStyle toolButtonStyle)" doc="/**
&lt;p&gt;Sets style of toolbar buttons in this mainwindow. to &lt;tt&gt;toolButtonStyle&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;The default is Qt::ToolButtonIconOnly.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#toolButtonStyle()&quot;&gt;&lt;tt&gt;toolButtonStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void setUnifiedTitleAndToolBarOnMac(boolean set)" doc="/**
&lt;p&gt;Sets whether the window uses the unified title and toolbar look on Mac OS X to &lt;tt&gt;set&lt;/tt&gt;.&lt;/p&gt;
&lt;p&gt;This property is false by default and only has any effect on Mac OS X 10.4 or higher.&lt;/p&gt;
&lt;p&gt;If set to true, then the top toolbar area is replaced with a Carbon HIToolbar and all toolbars in the top toolbar area are moved to that. Any toolbars added afterwards will also be added to the Carbon HIToolbar. This means a couple of things.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;QToolBars in this toolbar area are not movable and you cannot drag other toolbars to it&lt;/li&gt;
&lt;li&gt;Toolbar breaks are not respected or preserved&lt;/li&gt;
&lt;li&gt;Any custom widgets in the toolbar will not be shown if the toolbar becomes too small (only actions will be shown)&lt;/li&gt;
&lt;li&gt;If you call &lt;a href=&quot;QWidget.html#showFullScreen()&quot;&gt;&lt;tt&gt;showFullScreen&lt;/tt&gt;&lt;/a&gt; on the main window, the &lt;a href=&quot;%2E%2E/porting4.html#qtoolbar&quot;&gt;&lt;tt&gt;QToolbar&lt;/tt&gt;&lt;/a&gt; will disappear since it is considered to be part of the title bar. You can work around this by doing the following by turning off the unified toolbar before you call showFullScrenn() and restore the value after you call &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Setting this back to false will remove these restrictions.&lt;/p&gt;
&lt;p&gt;The Qt::WA_MacBrushedMetal attribute takes precedence over this property.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#unifiedTitleAndToolBarOnMac()&quot;&gt;&lt;tt&gt;unifiedTitleAndToolBarOnMac&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void splitDockWidget(com.trolltech.qt.gui.QDockWidget after, com.trolltech.qt.gui.QDockWidget dockwidget, com.trolltech.qt.core.Qt.Orientation orientation)" doc="/**
&lt;p&gt;Splits the space covered by the &lt;tt&gt;after&lt;/tt&gt; dock widget into two parts, moves the &lt;tt&gt;after&lt;/tt&gt; dock widget into the first part, and moves the &lt;tt&gt;dockwidget&lt;/tt&gt; dock widget into the second part.&lt;/p&gt;
&lt;p&gt;The &lt;tt&gt;orientation&lt;/tt&gt; specifies how the space is divided: A Qt::Horizontal split places the second dock widget to the right of the first; a Qt::Vertical split places the second dock widget below the first.&lt;/p&gt;
&lt;p&gt;&lt;i&gt;Note&lt;/i&gt;: if &lt;tt&gt;after&lt;/tt&gt; is currently in a tabbed docked area, &lt;tt&gt;dockwidget&lt;/tt&gt; will be added as a new tab, not as a neighbor of &lt;tt&gt;after&lt;/tt&gt;. This is because a single tab can contain only one dock widget.&lt;/p&gt;
&lt;p&gt;&lt;i&gt;Note&lt;/i&gt;: The Qt::LayoutDirection influences the order of the dock widgets in the two parts of the divided area. When right-to-left layout direction is enabled, the placing of the dock widgets will be reversed.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#tabifyDockWidget(com.trolltech.qt.gui.QDockWidget, com.trolltech.qt.gui.QDockWidget)&quot;&gt;&lt;tt&gt;tabifyDockWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#addDockWidget(com.trolltech.qt.core.Qt.DockWidgetArea, com.trolltech.qt.gui.QDockWidget)&quot;&gt;&lt;tt&gt;addDockWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#removeDockWidget(com.trolltech.qt.gui.QDockWidget)&quot;&gt;&lt;tt&gt;removeDockWidget&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.gui.QStatusBar statusBar()" doc="/**
&lt;p&gt;Returns the status bar for the main window. This function creates and returns an empty status bar if the status bar does not exist.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#setStatusBar(com.trolltech.qt.gui.QStatusBar)&quot;&gt;&lt;tt&gt;setStatusBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final void tabifyDockWidget(com.trolltech.qt.gui.QDockWidget first, com.trolltech.qt.gui.QDockWidget second)" doc="/**
&lt;p&gt;Moves &lt;tt&gt;second&lt;/tt&gt; dock widget on top of &lt;tt&gt;first&lt;/tt&gt; dock widget, creating a tabbed docked area in the main window.&lt;/p&gt;
 */"/>
    <method name="public final com.trolltech.qt.core.Qt.ToolBarArea toolBarArea(com.trolltech.qt.gui.QToolBar toolbar)" doc="/**
&lt;p&gt;Returns the Qt::ToolBarArea for &lt;tt&gt;toolbar&lt;/tt&gt;. If &lt;tt&gt;toolbar&lt;/tt&gt; has not been added to the main window, this function returns &lt;tt&gt;Qt::NoToolBarArea&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#addToolBar(com.trolltech.qt.gui.QToolBar)&quot;&gt;&lt;tt&gt;addToolBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#addToolBarBreak(com.trolltech.qt.core.Qt.ToolBarArea)&quot;&gt;&lt;tt&gt;addToolBarBreak&lt;/tt&gt;&lt;/a&gt;
@see &lt;tt&gt;Qt::ToolBarArea&lt;/tt&gt; */"/>
    <method name="public final boolean toolBarBreak(com.trolltech.qt.gui.QToolBar toolbar)" doc="/**
&lt;p&gt;Returns whether there is a toolbar break before the &lt;tt&gt;toolbar&lt;/tt&gt;.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#addToolBarBreak(com.trolltech.qt.core.Qt.ToolBarArea)&quot;&gt;&lt;tt&gt;addToolBarBreak&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#insertToolBarBreak(com.trolltech.qt.gui.QToolBar)&quot;&gt;&lt;tt&gt;insertToolBarBreak&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final com.trolltech.qt.core.Qt.ToolButtonStyle toolButtonStyle()" doc="/**
&lt;p&gt;Returns style of toolbar buttons in this mainwindow..&lt;/p&gt;
&lt;p&gt;The default is Qt::ToolButtonIconOnly.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#setToolButtonStyle(com.trolltech.qt.core.Qt.ToolButtonStyle)&quot;&gt;&lt;tt&gt;setToolButtonStyle&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public final boolean unifiedTitleAndToolBarOnMac()" doc="/**
&lt;p&gt;Returns whether the window uses the unified title and toolbar look on Mac OS X.&lt;/p&gt;
&lt;p&gt;This property is false by default and only has any effect on Mac OS X 10.4 or higher.&lt;/p&gt;
&lt;p&gt;If set to true, then the top toolbar area is replaced with a Carbon HIToolbar and all toolbars in the top toolbar area are moved to that. Any toolbars added afterwards will also be added to the Carbon HIToolbar. This means a couple of things.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;QToolBars in this toolbar area are not movable and you cannot drag other toolbars to it&lt;/li&gt;
&lt;li&gt;Toolbar breaks are not respected or preserved&lt;/li&gt;
&lt;li&gt;Any custom widgets in the toolbar will not be shown if the toolbar becomes too small (only actions will be shown)&lt;/li&gt;
&lt;li&gt;If you call &lt;a href=&quot;QWidget.html#showFullScreen()&quot;&gt;&lt;tt&gt;showFullScreen&lt;/tt&gt;&lt;/a&gt; on the main window, the &lt;a href=&quot;%2E%2E/porting4.html#qtoolbar&quot;&gt;&lt;tt&gt;QToolbar&lt;/tt&gt;&lt;/a&gt; will disappear since it is considered to be part of the title bar. You can work around this by doing the following by turning off the unified toolbar before you call showFullScrenn() and restore the value after you call &lt;a href=&quot;QWidget.html#showNormal()&quot;&gt;&lt;tt&gt;showNormal&lt;/tt&gt;&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;Setting this back to false will remove these restrictions.&lt;/p&gt;
&lt;p&gt;The Qt::WA_MacBrushedMetal attribute takes precedence over this property.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#setUnifiedTitleAndToolBarOnMac(boolean)&quot;&gt;&lt;tt&gt;setUnifiedTitleAndToolBarOnMac&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="protected void contextMenuEvent(com.trolltech.qt.gui.QContextMenuEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <method name="public com.trolltech.qt.gui.QMenu createPopupMenu()" doc="/**
&lt;p&gt;Returns a popup menu containing checkable entries for the toolbars and dock widgets present in the main window. If there are no toolbars and dock widgets present, this function returns a null pointer.&lt;/p&gt;
&lt;p&gt;By default, this function is called by the main window when the user activates a context menu, typically by right-clicking on a toolbar or a dock widget.&lt;/p&gt;
&lt;p&gt;If you want to create a custom popup menu, reimplement this function and return a newly-created popup menu. Ownership of the popup menu is transferred to the caller.&lt;/p&gt;

@see &lt;a href=&quot;QMainWindow.html#addDockWidget(com.trolltech.qt.core.Qt.DockWidgetArea, com.trolltech.qt.gui.QDockWidget)&quot;&gt;&lt;tt&gt;addDockWidget&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#addToolBar(com.trolltech.qt.gui.QToolBar)&quot;&gt;&lt;tt&gt;addToolBar&lt;/tt&gt;&lt;/a&gt;
@see &lt;a href=&quot;QMainWindow.html#menuBar()&quot;&gt;&lt;tt&gt;menuBar&lt;/tt&gt;&lt;/a&gt; */"/>
    <method name="public boolean event(com.trolltech.qt.core.QEvent event)" doc="/**
&lt;p&gt;This function is reimplemented for internal reasons.&lt;/p&gt;
 */"/>
    <enum name="DockOption" doc="/**
&lt;p&gt;This enum contains flags that specify the docking behavior of &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;These options only control how dock widgets may be dropped in a &lt;a href=&quot;QMainWindow.html#QMainWindow(com.trolltech.qt.gui.QWidget, com.trolltech.qt.core.Qt.WindowFlags)&quot;&gt;&lt;tt&gt;QMainWindow&lt;/tt&gt;&lt;/a&gt;. They do not re-arrange the dock widgets to conform with the specified options. For this reason they should be set before any dock widgets are added to the main window. Exceptions to this are the &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AnimatedDocks&lt;/tt&gt;&lt;/a&gt; and &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;VerticalTabs&lt;/tt&gt;&lt;/a&gt; options, which may be set at any time.&lt;/p&gt;
 */">
        <enum-value name="AnimatedDocks" doc="/**
&lt;p&gt;Identical to the animated&lt;/tt&gt; property.&lt;/p&gt;
 */"/>
        <enum-value name="AllowNestedDocks" doc="/**
&lt;p&gt;Identical to the &lt;tt&gt;dockNestingEnabled&lt;/tt&gt; property.&lt;/p&gt;
 */"/>
        <enum-value name="AllowTabbedDocks" doc="/**
&lt;p&gt;The user can drop one dock widget &amp;quot;on top&amp;quot; of another. The two widgets are stacked and a tab bar appears for selecting which one is visible.&lt;/p&gt;
 */"/>
        <enum-value name="ForceTabbedDocks" doc="/**
&lt;p&gt;Each dock area contains a single stack of tabbed dock widgets. In other words, dock widgets cannot be placed next to each other in a dock area. If this option is set, &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AllowNestedDocks&lt;/tt&gt;&lt;/a&gt; has no effect.&lt;/p&gt;
 */"/>
        <enum-value name="VerticalTabs" doc="/**
&lt;p&gt;The two vertical dock areas on the sides of the main window show their tabs vertically. If this option is not set, all dock areas show their tabs at the bottom. Implies &lt;a href=&quot;QMainWindow.html#DockOption-enum&quot;&gt;&lt;tt&gt;AllowTabbedDocks&lt;/tt&gt;&lt;/a&gt;.&lt;/p&gt;
 */"/>
</enum>
</class>
