Sophie

Sophie

distrib > Fedora > 18 > x86_64 > by-pkgid > ff187cb994c94c614ecc64c5a8528b1b > files > 4601

qt-doc-4.8.5-10.fc18.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en_US" lang="en_US">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- q3mainwindow.cpp -->
  <title>Qt 4.8: Q3MainWindow Class Reference</title>
  <link rel="stylesheet" type="text/css" href="style/style.css" />
  <script src="scripts/jquery.js" type="text/javascript"></script>
  <script src="scripts/functions.js" type="text/javascript"></script>
  <link rel="stylesheet" type="text/css" href="style/superfish.css" />
  <link rel="stylesheet" type="text/css" href="style/narrow.css" />
  <!--[if IE]>
<meta name="MSSmartTagsPreventParsing" content="true">
<meta http-equiv="imagetoolbar" content="no">
<![endif]-->
<!--[if lt IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie6.css">
<![endif]-->
<!--[if IE 7]>
<link rel="stylesheet" type="text/css" href="style/style_ie7.css">
<![endif]-->
<!--[if IE 8]>
<link rel="stylesheet" type="text/css" href="style/style_ie8.css">
<![endif]-->

<script src="scripts/superfish.js" type="text/javascript"></script>
<script src="scripts/narrow.js" type="text/javascript"></script>

</head>
<body class="" onload="CheckEmptyAndLoadList();">
 <div class="header" id="qtdocheader">
    <div class="content"> 
    <div id="nav-logo">
      <a href="index.html">Home</a></div>
    <a href="index.html" class="qtref"><span>Qt Reference Documentation</span></a>
    <div id="narrowsearch"></div>
    <div id="nav-topright">
      <ul>
        <li class="nav-topright-home"><a href="http://qt.digia.com/">Qt HOME</a></li>
        <li class="nav-topright-dev"><a href="http://qt-project.org/">DEV</a></li>
        <li class="nav-topright-doc nav-topright-doc-active"><a href="http://qt-project.org/doc/">
          DOC</a></li>
        <li class="nav-topright-blog"><a href="http://blog.qt.digia.com/">BLOG</a></li>
      </ul>
    </div>
    <div id="shortCut">
      <ul>
        <li class="shortCut-topleft-inactive"><span><a href="index.html">Qt 4.8</a></span></li>
        <li class="shortCut-topleft-active"><a href="http://qt-project.org/doc/">ALL VERSIONS        </a></li>
      </ul>
     </div>
 <ul class="sf-menu" id="narrowmenu"> 
             <li><a href="#">API Lookup</a> 
                 <ul> 
                     <li><a href="classes.html">Class index</a></li> 
           <li><a href="functions.html">Function index</a></li> 
           <li><a href="modules.html">Modules</a></li> 
           <li><a href="namespaces.html">Namespaces</a></li> 
           <li><a href="qtglobal.html">Global Declarations</a></li> 
           <li><a href="qdeclarativeelements.html">QML elements</a></li> 
             </ul> 
             </li> 
             <li><a href="#">Qt Topics</a> 
                 <ul> 
                        <li><a href="qt-basic-concepts.html">Programming with Qt</a></li>  
                        <li><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li>  
                        <li><a href="qt-gui-concepts.html">UI Design with Qt</a></li>  
                        <li><a href="supported-platforms.html">Supported Platforms</a></li>  
                        <li><a href="technology-apis.html">Qt and Key Technologies</a></li>  
                        <li><a href="best-practices.html">How-To's and Best Practices</a></li>  
              </ul> 
                 </li> 
                 <li><a href="#">Examples</a> 
                     <ul> 
                       <li><a href="all-examples.html">Examples</a></li> 
                       <li><a href="tutorials.html">Tutorials</a></li> 
                       <li><a href="demos.html">Demos</a></li> 
                       <li><a href="qdeclarativeexamples.html">QML Examples</a></li> 
                </ul> 
                     </li> 
                 </ul> 
    </div>
  </div>
  <div class="wrapper">
    <div class="hd">
      <span></span>
    </div>
    <div class="bd group">
      <div class="sidebar">
        <div class="searchlabel">
          Search index:</div>
        <div class="search" id="sidebarsearch">
          <form id="qtdocsearch" action="" onsubmit="return false;">
            <fieldset>
              <input type="text" name="searchstring" id="pageType" value="" />
 <div id="resultdialog"> 
 <a href="#" id="resultclose">Close</a> 
 <p id="resultlinks" class="all"><a href="#" id="showallresults">All</a> | <a href="#" id="showapiresults">API</a> | <a href="#" id="showarticleresults">Articles</a> | <a href="#" id="showexampleresults">Examples</a></p> 
 <p id="searchcount" class="all"><span id="resultcount"></span><span id="apicount"></span><span id="articlecount"></span><span id="examplecount"></span>&nbsp;results:</p> 
 <ul id="resultlist" class="all"> 
 </ul> 
 </div> 
            </fieldset>
          </form>
        </div>
        <div class="box first bottombar" id="lookup">
          <h2 title="API Lookup"><span></span>
            API Lookup</h2>
          <div  id="list001" class="list">
          <ul id="ul001" >
              <li class="defaultLink"><a href="classes.html">Class index</a></li>
              <li class="defaultLink"><a href="functions.html">Function index</a></li>
              <li class="defaultLink"><a href="modules.html">Modules</a></li>
              <li class="defaultLink"><a href="namespaces.html">Namespaces</a></li>
              <li class="defaultLink"><a href="qtglobal.html">Global Declarations</a></li>
              <li class="defaultLink"><a href="qdeclarativeelements.html">QML elements</a></li>
            </ul> 
          </div>
        </div>
        <div class="box bottombar" id="topics">
          <h2 title="Qt Topics"><span></span>
            Qt Topics</h2>
          <div id="list002" class="list">
            <ul id="ul002" >
               <li class="defaultLink"><a href="qt-basic-concepts.html">Programming with Qt</a></li> 
               <li class="defaultLink"><a href="qtquick.html">Device UIs &amp; Qt Quick</a></li> 
               <li class="defaultLink"><a href="qt-gui-concepts.html">UI Design with Qt</a></li> 
               <li class="defaultLink"><a href="supported-platforms.html">Supported Platforms</a></li>  
               <li class="defaultLink"><a href="technology-apis.html">Qt and Key Technologies</a></li> 
               <li class="defaultLink"><a href="best-practices.html">How-To's and Best Practices</a></li> 
            </ul>  
          </div>
        </div>
        <div class="box" id="examples">
          <h2 title="Examples"><span></span>
            Examples</h2>
          <div id="list003" class="list">
        <ul id="ul003">
              <li class="defaultLink"><a href="all-examples.html">Examples</a></li>
              <li class="defaultLink"><a href="tutorials.html">Tutorials</a></li>
              <li class="defaultLink"><a href="demos.html">Demos</a></li>
              <li class="defaultLink"><a href="qdeclarativeexamples.html">QML Examples</a></li>
            </ul> 
          </div>
        </div>
      </div>
      <div class="wrap">
        <div class="toolbar">
          <div class="breadcrumb toolblock">
            <ul>
              <li class="first"><a href="index.html">Home</a></li>
              <!--  Breadcrumbs go here -->
<li><a href="modules.html">Modules</a></li>
<li>Qt3SupportLight</li>
<li>Q3MainWindow</li>
            </ul>
          </div>
          <div class="toolbuttons toolblock">
            <ul>
              <li id="smallA" class="t_button">A</li>
              <li id="medA" class="t_button active">A</li>
              <li id="bigA" class="t_button">A</li>
              <li id="print" class="t_button"><a href="javascript:this.print();">
                <span>Print</span></a></li>
            </ul>
        </div>
        </div>
        <div class="content mainContent">
<div class="toc">
<h3><a name="toc">Contents</a></h3>
<ul>
<li class="level1"><a href="#public-types">Public Types</a></li>
<li class="level1"><a href="#properties">Properties</a></li>
<li class="level1"><a href="#public-functions">Public Functions</a></li>
<li class="level1"><a href="#public-slots">Public Slots</a></li>
<li class="level1"><a href="#signals">Signals</a></li>
<li class="level1"><a href="#protected-functions">Protected Functions</a></li>
<li class="level1"><a href="#protected-slots">Protected Slots</a></li>
<li class="level1"><a href="#related-non-members">Related Non-Members</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">Q3MainWindow Class Reference</h1>
<!-- $$$Q3MainWindow-brief -->
<p>The Q3MainWindow class provides a main application window, with a menu bar, dock windows (e.g&#x2e; for toolbars), and a status bar. <a href="#details">More...</a></p>
<!-- @@@Q3MainWindow -->
<pre class="cpp"> <span class="preprocessor">#include &lt;Q3MainWindow&gt;</span></pre><p><b>This class is part of the Qt 3 support library.</b> It is provided to keep old source code working. We strongly advise against using it in new code. See <a href="porting4.html#qmainwindow">Porting to Qt 4</a> for more information.</p>
<p><b>Inherits: </b><a href="qwidget.html">QWidget</a>.</p>
<ul>
<li><a href="q3mainwindow-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="public-types"></a>
<h2>Public Types</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> enum </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#DockWindows-enum">DockWindows</a></b> { OnlyToolBars, NoToolBars, AllDockWindows }</td></tr>
</table>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="q3mainwindow.html#dockWindowsMovable-prop">dockWindowsMovable</a></b> : bool</li>
<li class="fn"><b><a href="q3mainwindow.html#opaqueMoving-prop">opaqueMoving</a></b> : bool</li>
<li class="fn"><b><a href="q3mainwindow.html#rightJustification-prop">rightJustification</a></b> : bool</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="q3mainwindow.html#usesBigPixmaps-prop">usesBigPixmaps</a></b> : bool</li>
<li class="fn"><b><a href="q3mainwindow.html#usesTextLabel-prop">usesTextLabel</a></b> : bool</li>
</ul>
</td></tr>
</table>
<ul>
<li class="fn">58 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2>Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#Q3MainWindow">Q3MainWindow</a></b> ( QWidget * <i>parent</i> = 0, const char * <i>name</i> = 0, Qt::WindowFlags <i>f</i> = Qt::WType_TopLevel )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#dtor.Q3MainWindow">~Q3MainWindow</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#addDockWindow">addDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>edge</i> = Qt::DockTop, bool <i>newLine</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#addDockWindow-2">addDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, const QString &amp; <i>label</i>, Qt::Dock <i>edge</i> = Qt::DockTop, bool <i>newLine</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#addToolBar">addToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>position</i> = Qt::DockTop, bool <i>newLine</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#addToolBar-2">addToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, const QString &amp; <i>label</i>, Qt::Dock <i>position</i> = Qt::DockTop, bool <i>newLine</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#appropriate">appropriate</a></b> ( Q3DockWindow * <i>dw</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3DockArea * </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#bottomDock">bottomDock</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#centralWidget">centralWidget</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual Q3PopupMenu * </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a></b> ( DockWindows <i>dockWindows</i> = AllDockWindows ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;Q3DockWindow *&gt; </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#dockWindows">dockWindows</a></b> ( Qt::Dock <i>dock</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;Q3DockWindow *&gt; </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#dockWindows-2">dockWindows</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#dockWindowsMovable-prop">dockWindowsMovable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#getLocation">getLocation</a></b> ( Q3DockWindow * <i>dw</i>, Qt::Dock &amp; <i>dock</i>, int &amp; <i>index</i>, bool &amp; <i>nl</i>, int &amp; <i>extraOffset</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#hasDockWindow">hasDockWindow</a></b> ( Q3DockWindow * <i>dw</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#isCustomizable">isCustomizable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#isDockEnabled">isDockEnabled</a></b> ( Qt::Dock <i>dock</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#isDockEnabled-2">isDockEnabled</a></b> ( Q3DockArea * <i>area</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#isDockEnabled-3">isDockEnabled</a></b> ( Q3DockWindow * <i>dw</i>, Q3DockArea * <i>area</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#isDockEnabled-4">isDockEnabled</a></b> ( Q3DockWindow * <i>tb</i>, Qt::Dock <i>dock</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#isDockMenuEnabled">isDockMenuEnabled</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3DockArea * </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#leftDock">leftDock</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#lineUpDockWindows">lineUpDockWindows</a></b> ( bool <i>keepNewLines</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#lineUpToolBars">lineUpToolBars</a></b> ( bool <i>keepNewLines</i> = false )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QMenuBar * </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#menuBar">menuBar</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#moveDockWindow">moveDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>edge</i> = Qt::DockTop )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#moveDockWindow-2">moveDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>edge</i>, bool <i>nl</i>, int <i>index</i>, int <i>extraOffset</i> = -1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#moveToolBar">moveToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>position</i> = Qt::DockTop )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#moveToolBar-2">moveToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i>, Qt::Dock <i>position</i>, bool <i>nl</i>, int <i>index</i>, int <i>extraOffset</i> = -1 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#opaqueMoving-prop">opaqueMoving</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#removeDockWindow">removeDockWindow</a></b> ( Q3DockWindow * <i>dockWindow</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#removeToolBar">removeToolBar</a></b> ( Q3DockWindow * <i>dockWindow</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3DockArea * </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#rightDock">rightDock</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#rightJustification-prop">rightJustification</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#setCentralWidget">setCentralWidget</a></b> ( QWidget * <i>w</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a></b> ( Qt::Dock <i>dock</i>, bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#setDockEnabled-2">setDockEnabled</a></b> ( Q3DockWindow * <i>dw</i>, Qt::Dock <i>dock</i>, bool <i>enable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QStatusBar * </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#statusBar">statusBar</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QList&lt;Q3ToolBar *&gt; </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#toolBars">toolBars</a></b> ( Qt::Dock <i>dock</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#toolBarsMovable">toolBarsMovable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Q3DockArea * </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#topDock">topDock</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#usesBigPixmaps-prop">usesBigPixmaps</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#usesTextLabel-prop">usesTextLabel</a></b> () const</td></tr>
</table>
<a name="reimplemented-public-functions"></a>
<h2>Reimplemented Public Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#eventFilter">eventFilter</a></b> ( QObject * <i>o</i>, QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#minimumSizeHint">minimumSizeHint</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#setVisible">setVisible</a></b> ( bool <i>visible</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual QSize </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#sizeHint">sizeHint</a></b> () const</td></tr>
</table>
<ul>
<li class="fn">221 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">29 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
<li class="fn">13 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2>Public Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#customize">customize</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#setAppropriate">setAppropriate</a></b> ( Q3DockWindow * <i>dw</i>, bool <i>a</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#setDockMenuEnabled">setDockMenuEnabled</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#dockWindowsMovable-prop">setDockWindowsMovable</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#opaqueMoving-prop">setOpaqueMoving</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#rightJustification-prop">setRightJustification</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#setToolBarsMovable">setToolBarsMovable</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#usesBigPixmaps-prop">setUsesBigPixmaps</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#usesTextLabel-prop">setUsesTextLabel</a></b> ( bool )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#whatsThis">whatsThis</a></b> ()</td></tr>
</table>
<ul>
<li class="fn">19 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
<li class="fn">1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2>Signals</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#dockWindowPositionChanged">dockWindowPositionChanged</a></b> ( Q3DockWindow * <i>dockWindow</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#pixmapSizeChanged">pixmapSizeChanged</a></b> ( bool <i>b</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#toolBarPositionChanged">toolBarPositionChanged</a></b> ( Q3ToolBar * <i>toolbar</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#usesTextLabelChanged">usesTextLabelChanged</a></b> ( bool <i>b</i> )</td></tr>
</table>
<ul>
<li class="fn">1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
</ul>
<a name="reimplemented-protected-functions"></a>
<h2>Reimplemented Protected Functions</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#childEvent">childEvent</a></b> ( QChildEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#event">event</a></b> ( QEvent * <i>e</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#paintEvent">paintEvent</a></b> ( QPaintEvent * )</td></tr>
</table>
<ul>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<a name="protected-slots"></a>
<h2>Protected Slots</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#menuAboutToShow">menuAboutToShow</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#setUpLayout">setUpLayout</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#showDockMenu">showDockMenu</a></b> ( const QPoint &amp; <i>globalPos</i> )</td></tr>
</table>
<ul>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="related-non-members"></a>
<h2>Related Non-Members</h2>
<table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> QTextStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#operator-lt-lt-59">operator&lt;&lt;</a></b> ( QTextStream &amp; <i>ts</i>, const Q3MainWindow &amp; <i>mainWindow</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QTextStream &amp; </td><td class="memItemRight bottomAlign"><b><a href="q3mainwindow.html#operator-gt-gt-39">operator&gt;&gt;</a></b> ( QTextStream &amp; <i>ts</i>, Q3MainWindow &amp; <i>mainWindow</i> )</td></tr>
</table>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">7 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
<li class="fn">37 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">8 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<a name="details"></a>
<!-- $$$Q3MainWindow-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The Q3MainWindow class provides a main application window, with a menu bar, dock windows (e.g&#x2e; for toolbars), and a status bar.</p>
<p>Main windows are most often used to provide menus, toolbars and a status bar around a large central widget, such as a text edit, drawing canvas or <a href="qworkspace.html" class="obsolete">QWorkspace</a> (for MDI applications). Q3MainWindow is usually subclassed since this makes it easier to encapsulate the central widget, menus and toolbars as well as the window's state. Subclassing makes it possible to create the slots that are called when the user clicks menu items or toolbar buttons.</p>
<p>We'll briefly review adding menu items and toolbar buttons then describe the facilities of Q3MainWindow itself.</p>
<pre class="cpp"> <span class="type">Q3MainWindow</span> <span class="operator">*</span>mw <span class="operator">=</span> <span class="keyword">new</span> <span class="type">Q3MainWindow</span>;
 <span class="type"><a href="qtextedit.html">QTextEdit</a></span> <span class="operator">*</span>edit <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qtextedit.html">QTextEdit</a></span>(mw<span class="operator">,</span> <span class="string">&quot;editor&quot;</span>);
 edit<span class="operator">-</span><span class="operator">&gt;</span><a href="qwidget.html#setFocus">setFocus</a>();
 mw<span class="operator">-</span><span class="operator">&gt;</span><a href="qwidget.html#windowTitle-prop">setWindowTitle</a>(<span class="string">&quot;Main Window&quot;</span>);
 mw<span class="operator">-</span><span class="operator">&gt;</span><a href="q3mainwindow.html#setCentralWidget">setCentralWidget</a>(edit);
 mw<span class="operator">-</span><span class="operator">&gt;</span><a href="qwidget.html#show">show</a>();</pre>
<p>Q3MainWindows may be created in their own right as shown above. The central widget is set with <a href="q3mainwindow.html#setCentralWidget">setCentralWidget</a>(). Popup menus can be added to the default menu bar, widgets can be added to the status bar, toolbars and dock windows can be added to any of the dock areas.</p>
<p>The main window will take care of the dock areas, and the geometry of the central widget, but all other aspects of the central widget are left to you. Q3MainWindow automatically detects the creation of a menu bar or status bar if you specify the Q3MainWindow as parent, or you can use the provided <a href="q3mainwindow.html#menuBar">menuBar</a>() and <a href="q3mainwindow.html#statusBar">statusBar</a>() functions. The functions <a href="q3mainwindow.html#menuBar">menuBar</a>() and <a href="q3mainwindow.html#statusBar">statusBar</a>() create a suitable widget if one doesn't exist, and update the window's layout to make space.</p>
<p>New dock windows and toolbars can be added to a Q3MainWindow using <a href="q3mainwindow.html#addDockWindow">addDockWindow</a>(). <a href="qt-qt3.html#Dock-enum">Qt::Dock</a> windows can be moved using <a href="q3mainwindow.html#moveDockWindow">moveDockWindow</a>() and removed with <a href="q3mainwindow.html#removeDockWindow">removeDockWindow</a>(). Q3MainWindow allows default dock window (toolbar) docking in all its dock areas (<tt>Top</tt>, <tt>Left</tt>, <tt>Right</tt>, <tt>Bottom</tt>). You can use <a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>() to enable and disable docking areas for dock windows. When adding or moving dock windows you can specify their 'edge' (dock area). The currently available edges are: <tt>Top</tt>, <tt>Left</tt>, <tt>Right</tt>, <tt>Bottom</tt>, <tt>Minimized</tt> (effectively a 'hidden' dock area) and <tt>TornOff</tt> (floating). See <a href="qt-qt3.html#Dock-enum">Qt::Dock</a> for an explanation of these areas. Note that the *ToolBar functions are included for backward compatibility; all new code should use the *DockWindow functions. <a href="porting4.html#qtoolbar">QToolbar</a> is a subclass of <a href="q3dockwindow.html">Q3DockWindow</a> so all functions that work with dock windows work on toolbars in the same way.</p>
<a name="dwm"></a><p>If the user clicks the close button, then the dock window is hidden. A dock window can be hidden or unhidden by the user by right clicking a dock area and clicking the name of the relevant dock window on the pop up dock window menu. This menu lists the names of every dock window; visible dock windows have a tick beside their names. The dock window menu is created automatically as required by <a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a>(). Since it may not always be appropriate for a dock window to appear on this menu the <a href="q3mainwindow.html#setAppropriate">setAppropriate</a>() function is used to inform the main window whether or not the dock window menu should include a particular dock window. Double clicking a dock window handle (usually on the left-hand side of the dock window) undocks (floats) the dock window. Double clicking a floating dock window's title bar will dock the floating dock window. (See also <a href="q3mainwindow.html#DockWindows-enum">Q3MainWindow::DockWindows</a>.)</p>
<p>Some functions change the appearance of a Q3MainWindow globally:</p>
<ul>
<li><a href="q3dockwindow.html#setHorizontalStretchable">Q3DockWindow::setHorizontalStretchable</a>() and <a href="q3dockwindow.html#setVerticalStretchable">Q3DockWindow::setVerticalStretchable</a>() are used to make specific dock windows or toolbars stretchable.</li>
<li><a href="q3mainwindow.html#usesBigPixmaps-prop">setUsesBigPixmaps</a>() is used to set whether tool buttons should draw small or large pixmaps (see <a href="qicon.html">QIcon</a> for more information).</li>
<li><a href="q3mainwindow.html#usesTextLabel-prop">setUsesTextLabel</a>() is used to set whether tool buttons should display a textual label in addition to pixmaps (see <a href="qtoolbutton.html">QToolButton</a> for more information).</li>
</ul>
<p>The user can drag dock windows into any enabled docking area. <a href="qt-qt3.html#Dock-enum">Qt::Dock</a> windows can also be dragged <i>within</i> a docking area, for example to rearrange the order of some toolbars. <a href="qt-qt3.html#Dock-enum">Qt::Dock</a> windows can also be dragged outside any docking area (undocked or 'floated'). Being able to drag dock windows can be enabled (the default) and disabled using <a href="q3mainwindow.html#dockWindowsMovable-prop">setDockWindowsMovable</a>().</p>
<p>The <tt>Minimized</tt> edge is a hidden dock area. If this dock area is enabled the user can hide (minimize) a dock window or show (restore) a minimized dock window by clicking the dock window handle. If the user hovers the mouse cursor over one of the handles, the caption of the dock window is displayed in a tool tip (see <a href="q3dockwindow.html#windowTitle">Q3DockWindow::windowTitle</a>() or <a href="q3toolbar.html#label-prop">Q3ToolBar::label</a>()), so if you enable the <tt>Minimized</tt> dock area, it is best to specify a meaningful caption or label for each dock window. To minimize a dock window programmatically use <a href="q3mainwindow.html#moveDockWindow">moveDockWindow</a>() with an edge of <tt>Minimized</tt>.</p>
<p><a href="qt-qt3.html#Dock-enum">Qt::Dock</a> windows are moved transparently by default, i.e&#x2e; during the drag an outline rectangle is drawn on the screen representing the position of the dock window as it moves. If you want the dock window to be shown normally whilst it is moved use <a href="q3mainwindow.html#opaqueMoving-prop">setOpaqueMoving</a>().</p>
<p>The location of a dock window, i.e&#x2e; its dock area and position within the dock area, can be determined by calling <a href="q3mainwindow.html#getLocation">getLocation</a>(). Movable dock windows can be lined up to minimize wasted space with <a href="q3mainwindow.html#lineUpDockWindows">lineUpDockWindows</a>(). Pointers to the dock areas are available from <a href="q3mainwindow.html#topDock">topDock</a>(), <a href="q3mainwindow.html#leftDock">leftDock</a>(), <a href="q3mainwindow.html#rightDock">rightDock</a>() and <a href="q3mainwindow.html#bottomDock">bottomDock</a>(). A customize menu item is added to the pop up dock window menu if <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() returns true; it returns false by default. Reimplement <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() and <a href="q3mainwindow.html#customize">customize</a>() if you want to offer this extra menu item, for example, to allow the user to change settings relating to the main window and its toolbars and dock windows.</p>
<p>The main window's menu bar is fixed (at the top) by default. If you want a movable menu bar, create a <a href="qmenubar.html">QMenuBar</a> as a stretchable widget inside its own movable dock window and restrict this dock window to only live within the <tt>Top</tt> or <tt>Bottom</tt> dock:</p>
<pre class="cpp"> <span class="type"><a href="q3toolbar.html">Q3ToolBar</a></span> <span class="operator">*</span>tb <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="q3toolbar.html">Q3ToolBar</a></span>(<span class="keyword">this</span>);
 <a href="q3mainwindow.html#addDockWindow">addDockWindow</a>(tb<span class="operator">,</span> tr(<span class="string">&quot;Menubar&quot;</span>)<span class="operator">,</span> Top<span class="operator">,</span> <span class="keyword">false</span>);
 <span class="type"><a href="qmenubar.html">QMenuBar</a></span> <span class="operator">*</span>mb <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="qmenubar.html">QMenuBar</a></span>(tb);
 mb<span class="operator">-</span><span class="operator">&gt;</span>setFrameStyle(<span class="type"><a href="qframe.html">QFrame</a></span><span class="operator">::</span>NoFrame);
 tb<span class="operator">-</span><span class="operator">&gt;</span>setStretchableWidget(mb);
 <a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>(tb<span class="operator">,</span> Left<span class="operator">,</span> <span class="keyword">false</span>);
 <a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>(tb<span class="operator">,</span> Right<span class="operator">,</span> <span class="keyword">false</span>);</pre>
<p>An application with multiple dock windows can choose to save the current dock window layout in order to restore it later, e.g&#x2e; in the next session. You can do this by using the streaming operators for Q3MainWindow.</p>
<p>To save the layout and positions of all the dock windows do this:</p>
<pre class="cpp"> <span class="type"><a href="qfile.html">QFile</a></span> file(filename);
 <span class="keyword">if</span> (file<span class="operator">.</span>open(IO_WriteOnly)) {
     <span class="type"><a href="qtextstream.html">QTextStream</a></span> stream(<span class="operator">&amp;</span>file);
     stream <span class="operator">&lt;</span><span class="operator">&lt;</span> <span class="operator">*</span>mainWindow;
     file<span class="operator">.</span>close();
 }</pre>
<p>To restore the dock window positions and sizes (normally when the application is next started), do the following:</p>
<pre class="cpp"> <span class="type"><a href="qfile.html">QFile</a></span> file(filename);
 <span class="keyword">if</span> (file<span class="operator">.</span>open(IO_ReadOnly)) {
     <span class="type"><a href="qtextstream.html">QTextStream</a></span> stream(<span class="operator">&amp;</span>file);
     stream <span class="operator">&gt;</span><span class="operator">&gt;</span> <span class="operator">*</span>mainWindow;
     file<span class="operator">.</span>close();
 }</pre>
<p>The <a href="qsettings.html">QSettings</a> class can be used in conjunction with the streaming operators to store the application's settings.</p>
<p>Q3MainWindow's management of dock windows and toolbars is done transparently behind-the-scenes by <a href="q3dockarea.html">Q3DockArea</a>.</p>
<p>For multi-document interfaces (MDI), use a <a href="qworkspace.html" class="obsolete">QWorkspace</a> as the central widget.</p>
<p>Adding dock windows, e.g&#x2e; toolbars, to Q3MainWindow's dock areas is straightforward. If the supplied dock areas are not sufficient for your application we suggest that you create a <a href="qwidget.html">QWidget</a> subclass and add your own dock areas (see <a href="q3dockarea.html">Q3DockArea</a>) to the subclass since Q3MainWindow provides functionality specific to the standard dock areas it provides.</p>
</div>
<p><b>See also </b><a href="q3toolbar.html">Q3ToolBar</a>, <a href="q3dockwindow.html">Q3DockWindow</a>, <a href="qstatusbar.html">QStatusBar</a>, <a href="qaction.html">QAction</a>, <a href="qmenubar.html">QMenuBar</a>, <a href="q3popupmenu.html">Q3PopupMenu</a>, and <a href="qdialog.html">QDialog</a>.</p>
<!-- @@@Q3MainWindow -->
<div class="types">
<h2>Member Type Documentation</h2>
<!-- $$$DockWindows$$$OnlyToolBars$$$NoToolBars$$$AllDockWindows -->
<h3 class="fn"><a name="DockWindows-enum"></a>enum Q3MainWindow::<span class="name">DockWindows</span></h3>
<p>Right-clicking a dock area will pop-up the dock window menu (<a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a>() is called automatically). When called in code you can specify what items should appear on the menu with this enum.</p>
<table class="valuelist"><tr valign="top" class="odd"><th class="tblConst">Constant</th><th class="tblval">Value</th><th class="tbldscr">Description</th></tr>
<tr><td class="topAlign"><tt>Q3MainWindow::OnlyToolBars</tt></td><td class="topAlign"><tt>0</tt></td><td class="topAlign">The menu will list all the toolbars, but not any other dock windows.</td></tr>
<tr><td class="topAlign"><tt>Q3MainWindow::NoToolBars</tt></td><td class="topAlign"><tt>1</tt></td><td class="topAlign">The menu will list dock windows but not toolbars.</td></tr>
<tr><td class="topAlign"><tt>Q3MainWindow::AllDockWindows</tt></td><td class="topAlign"><tt>2</tt></td><td class="topAlign">The menu will list all toolbars and other dock windows. (This is the default.)</td></tr>
</table>
<!-- @@@DockWindows -->
</div>
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$dockWindowsMovable-prop$$$dockWindowsMovable$$$setDockWindowsMovablebool -->
<h3 class="fn"><a name="dockWindowsMovable-prop"></a><span class="name">dockWindowsMovable</span> : <span class="type">bool</span></h3>
<p>This property holds whether the dock windows are movable.</p>
<p>If true (the default), the user will be able to move movable dock windows from one <a href="q3mainwindow.html" class="compat">Q3MainWindow</a> dock area to another, including the <tt>TearOff</tt> area (i.e&#x2e; where the dock window floats freely as a window in its own right), and the <tt>Minimized</tt> area (where only the dock window's handle is shown below the menu bar). Movable dock windows can also be moved within <a href="q3mainwindow.html" class="compat">Q3MainWindow</a> dock areas, i.e&#x2e; to rearrange them within a dock area.</p>
<p>If false the user will not be able to move any dock windows.</p>
<p>By default dock windows are moved transparently (i.e&#x2e; only an outline rectangle is shown during the drag), but this setting can be changed with <a href="q3mainwindow.html#opaqueMoving-prop">setOpaqueMoving</a>().</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>dockWindowsMovable</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setDockWindowsMovable</b></span> ( bool )</td></tr>
</table>
<p><b>See also </b><a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>() and <a href="q3mainwindow.html#opaqueMoving-prop">setOpaqueMoving</a>().</p>
<!-- @@@dockWindowsMovable -->
<!-- $$$opaqueMoving-prop$$$opaqueMoving$$$setOpaqueMovingbool -->
<h3 class="fn"><a name="opaqueMoving-prop"></a><span class="name">opaqueMoving</span> : <span class="type">bool</span></h3>
<p>This property holds whether dock windows are moved opaquely.</p>
<p>If true the dock windows of the main window are shown opaquely (i.e&#x2e; it shows the toolbar as it looks when docked) whilst it is being moved. If false (the default) they are shown transparently, (i.e&#x2e; as an outline rectangle).</p>
<p><b>Warning:</b> Opaque moving of toolbars and dockwindows is known to have several problems. We recommend avoiding the use of this feature for the time being. We intend fixing the problems in a future release.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>opaqueMoving</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOpaqueMoving</b></span> ( bool )</td></tr>
</table>
<!-- @@@opaqueMoving -->
<!-- $$$rightJustification-prop$$$rightJustification$$$setRightJustificationbool -->
<h3 class="fn"><a name="rightJustification-prop"></a><span class="name">rightJustification</span> : <span class="type">bool</span></h3>
<p>This property holds whether the main window right-justifies its dock windows.</p>
<p>If disabled (the default), stretchable dock windows are expanded, and non-stretchable dock windows are given the minimum space they need. Since most dock windows are not stretchable, this usually results in an unjustified right edge (or unjustified bottom edge for a vertical dock area). If enabled, the main window will right-justify its dock windows.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>rightJustification</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setRightJustification</b></span> ( bool )</td></tr>
</table>
<p><b>See also </b><a href="q3dockwindow.html#setVerticalStretchable">Q3DockWindow::setVerticalStretchable</a>() and <a href="q3dockwindow.html#setHorizontalStretchable">Q3DockWindow::setHorizontalStretchable</a>().</p>
<!-- @@@rightJustification -->
<!-- $$$usesBigPixmaps-prop$$$usesBigPixmaps$$$setUsesBigPixmapsbool -->
<h3 class="fn"><a name="usesBigPixmaps-prop"></a><span class="name">usesBigPixmaps</span> : <span class="type">bool</span></h3>
<p>This property holds whether big pixmaps are enabled.</p>
<p>If false (the default), the tool buttons will use small pixmaps; otherwise big pixmaps will be used.</p>
<p>Tool buttons and other widgets that wish to respond to this setting are responsible for reading the correct state on startup, and for connecting to the main window's widget's <a href="q3mainwindow.html#pixmapSizeChanged">pixmapSizeChanged</a>() signal.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>usesBigPixmaps</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setUsesBigPixmaps</b></span> ( bool )</td></tr>
</table>
<!-- @@@usesBigPixmaps -->
<!-- $$$usesTextLabel-prop$$$usesTextLabel$$$setUsesTextLabelbool -->
<h3 class="fn"><a name="usesTextLabel-prop"></a><span class="name">usesTextLabel</span> : <span class="type">bool</span></h3>
<p>This property holds whether text labels for toolbar buttons are enabled.</p>
<p>If disabled (the default), the tool buttons will not use text labels. If enabled, text labels will be used.</p>
<p>Tool buttons and other widgets that wish to respond to this setting are responsible for reading the correct state on startup, and for connecting to the main window's widget's <a href="q3mainwindow.html#usesTextLabelChanged">usesTextLabelChanged</a>() signal.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> bool </td><td class="memItemRight bottomAlign"><span class="name"><b>usesTextLabel</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> virtual void </td><td class="memItemRight bottomAlign"><span class="name"><b>setUsesTextLabel</b></span> ( bool )</td></tr>
</table>
<p><b>See also </b><a href="qtoolbutton-qt3.html#setUsesTextLabel" class="compat">QToolButton::setUsesTextLabel</a>().</p>
<!-- @@@usesTextLabel -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$Q3MainWindow[overload1]$$$Q3MainWindowQWidget*constchar*Qt::WindowFlags -->
<h3 class="fn"><a name="Q3MainWindow"></a>Q3MainWindow::<span class="name">Q3MainWindow</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0, const <span class="type">char</span> * <i>name</i> = 0, <span class="type"><a href="qt.html#WindowType-enum">Qt::WindowFlags</a></span> <i>f</i> = Qt::WType_TopLevel )</h3>
<p>Constructs an empty main window. The <i>parent</i>, <i>name</i> and widget flags <i>f</i>, are passed on to the <a href="qwidget.html">QWidget</a> constructor.</p>
<p>By default, the widget flags are set to <a href="qt.html#WindowType-enum">Qt::WType_TopLevel</a> rather than 0 as they are with <a href="qwidget.html">QWidget</a>. If you don't want your <a href="q3mainwindow.html" class="compat">Q3MainWindow</a> to be a top level widget then you will need to set <i>f</i> to 0.</p>
<!-- @@@Q3MainWindow -->
<!-- $$$~Q3MainWindow[overload1]$$$~Q3MainWindow -->
<h3 class="fn"><a name="dtor.Q3MainWindow"></a>Q3MainWindow::<span class="name">~Q3MainWindow</span> ()</h3>
<p>Destroys the object and frees any allocated resources.</p>
<!-- @@@~Q3MainWindow -->
<!-- $$$addDockWindow[overload1]$$$addDockWindowQ3DockWindow*Qt::Dockbool -->
<h3 class="fn"><a name="addDockWindow"></a><span class="type">void</span> Q3MainWindow::<span class="name">addDockWindow</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>edge</i> = Qt::DockTop, <span class="type">bool</span> <i>newLine</i> = false )<tt> [virtual]</tt></h3>
<p>Adds <i>dockWindow</i> to the <i>edge</i> dock area.</p>
<p>If <i>newLine</i> is false (the default) then the <i>dockWindow</i> is added at the end of the <i>edge</i>. For vertical edges the end is at the bottom, for horizontal edges (including <tt>Minimized</tt>) the end is at the right. If <i>newLine</i> is true a new line of dock windows is started with <i>dockWindow</i> as the first (left-most and top-most) dock window.</p>
<p>If <i>dockWindow</i> is managed by another main window, it is first removed from that window.</p>
<!-- @@@addDockWindow -->
<!-- $$$addDockWindow$$$addDockWindowQ3DockWindow*constQString&Qt::Dockbool -->
<h3 class="fn"><a name="addDockWindow-2"></a><span class="type">void</span> Q3MainWindow::<span class="name">addDockWindow</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>label</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>edge</i> = Qt::DockTop, <span class="type">bool</span> <i>newLine</i> = false )<tt> [virtual]</tt></h3>
<p>This is an overloaded function.</p>
<p>Adds <i>dockWindow</i> to the dock area with label <i>label</i>.</p>
<p>If <i>newLine</i> is false (the default) the <i>dockWindow</i> is added at the end of the <i>edge</i>. For vertical edges the end is at the bottom, for horizontal edges (including <tt>Minimized</tt>) the end is at the right. If <i>newLine</i> is true a new line of dock windows is started with <i>dockWindow</i> as the first (left-most and top-most) dock window.</p>
<p>If <i>dockWindow</i> is managed by another main window, it is first removed from that window.</p>
<!-- @@@addDockWindow -->
<!-- $$$addToolBar[overload1]$$$addToolBarQ3DockWindow*Qt::Dockbool -->
<h3 class="fn"><a name="addToolBar"></a><span class="type">void</span> Q3MainWindow::<span class="name">addToolBar</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>position</i> = Qt::DockTop, <span class="type">bool</span> <i>newLine</i> = false )</h3>
<p>Adds a new toolbar to the <i>dockWindow</i>. The toolbar is placed in the given <i>position</i>. If <i>newLine</i> is true the toolbar is put on a new line.</p>
<!-- @@@addToolBar -->
<!-- $$$addToolBar$$$addToolBarQ3DockWindow*constQString&Qt::Dockbool -->
<h3 class="fn"><a name="addToolBar-2"></a><span class="type">void</span> Q3MainWindow::<span class="name">addToolBar</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>label</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>position</i> = Qt::DockTop, <span class="type">bool</span> <i>newLine</i> = false )</h3>
<p>This is an overloaded function.</p>
<p>The toolbar has the caption <i>label</i> and is placed in the given <i>position</i>.</p>
<!-- @@@addToolBar -->
<!-- $$$appropriate[overload1]$$$appropriateQ3DockWindow* -->
<h3 class="fn"><a name="appropriate"></a><span class="type">bool</span> Q3MainWindow::<span class="name">appropriate</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dw</i> ) const</h3>
<p>Returns true if it is appropriate to include a menu item for the <i>dw</i> dock window in the dock window menu; otherwise returns false.</p>
<p>The user is able to change the state (show or hide) a dock window that has a menu item by clicking the item.</p>
<p>Call <a href="q3mainwindow.html#setAppropriate">setAppropriate</a>() to indicate whether or not a particular dock window should appear on the popup menu.</p>
<p><b>See also </b><a href="q3mainwindow.html#setAppropriate">setAppropriate</a>().</p>
<!-- @@@appropriate -->
<!-- $$$bottomDock[overload1]$$$bottomDock -->
<h3 class="fn"><a name="bottomDock"></a><span class="type"><a href="q3dockarea.html">Q3DockArea</a></span> * Q3MainWindow::<span class="name">bottomDock</span> () const</h3>
<p>Returns a pointer the <tt>Bottom</tt> dock area</p>
<p><b>See also </b><a href="q3mainwindow.html#topDock">topDock</a>(), <a href="q3mainwindow.html#leftDock">leftDock</a>(), and <a href="q3mainwindow.html#rightDock">rightDock</a>().</p>
<!-- @@@bottomDock -->
<!-- $$$centralWidget[overload1]$$$centralWidget -->
<h3 class="fn"><a name="centralWidget"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * Q3MainWindow::<span class="name">centralWidget</span> () const</h3>
<p>Returns a pointer to the main window's central widget.</p>
<p>The central widget is surrounded by the left, top, right and bottom dock areas. The menu bar is above the top dock area.</p>
<p><b>See also </b><a href="q3mainwindow.html#setCentralWidget">setCentralWidget</a>().</p>
<!-- @@@centralWidget -->
<!-- $$$childEvent[overload1]$$$childEventQChildEvent* -->
<h3 class="fn"><a name="childEvent"></a><span class="type">void</span> Q3MainWindow::<span class="name">childEvent</span> ( <span class="type"><a href="qchildevent.html">QChildEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#childEvent">QObject::childEvent</a>().</p>
<p>Monitors events, received in <i>e</i>, to ensure the layout is updated.</p>
<!-- @@@childEvent -->
<!-- $$$createDockWindowMenu[overload1]$$$createDockWindowMenuDockWindows -->
<h3 class="fn"><a name="createDockWindowMenu"></a><span class="type"><a href="q3popupmenu.html">Q3PopupMenu</a></span> * Q3MainWindow::<span class="name">createDockWindowMenu</span> ( <span class="type"><a href="q3mainwindow.html#DockWindows-enum">DockWindows</a></span> <i>dockWindows</i> = AllDockWindows ) const<tt> [virtual]</tt></h3>
<p>Creates the dock window menu which contains all toolbars (if <i>dockWindows</i> is <tt>OnlyToolBars</tt>), all dock windows (if <i>dockWindows</i> is <tt>NoToolBars</tt>) or all toolbars and dock windows (if <i>dockWindows</i> is <tt>AllDockWindows</tt> - the default).</p>
<p>This function is called internally when necessary, e.g&#x2e; when the user right clicks a dock area (providing <a href="q3mainwindow.html#isDockMenuEnabled">isDockMenuEnabled</a>() returns true). You can reimplement this function if you wish to customize the behavior.</p>
<p>The menu items representing the toolbars and dock windows are checkable. The visible dock windows are checked and the hidden dock windows are unchecked. The user can click a menu item to change its state (show or hide the dock window).</p>
<p>The list and the state are always kept up-to-date.</p>
<p>Toolbars and dock windows which are not appropriate in the current context (see <a href="q3mainwindow.html#setAppropriate">setAppropriate</a>()) are not listed in the menu.</p>
<p>The menu also has a menu item for lining up the dock windows.</p>
<p>If <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() returns true, a Customize menu item is added to the menu, which if clicked will call <a href="q3mainwindow.html#customize">customize</a>(). The <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() function we provide returns false and <a href="q3mainwindow.html#customize">customize</a>() does nothing, so they must be reimplemented in a subclass to be useful.</p>
<!-- @@@createDockWindowMenu -->
<!-- $$$customize[overload1]$$$customize -->
<h3 class="fn"><a name="customize"></a><span class="type">void</span> Q3MainWindow::<span class="name">customize</span> ()<tt> [virtual slot]</tt></h3>
<p>This function is called when the user clicks the Customize menu item on the dock window menu.</p>
<p>The customize menu item will only appear if <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() returns true (it returns false by default).</p>
<p>The function is intended, for example, to provide the user with a means of telling the application that they wish to customize the main window, dock windows or dock areas.</p>
<p>The default implementation does nothing and the Customize menu item is not shown on the right-click menu by default. If you want the item to appear then reimplement <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() to return true, and reimplement this function to do whatever you want.</p>
<p><b>See also </b><a href="q3mainwindow.html#isCustomizable">isCustomizable</a>().</p>
<!-- @@@customize -->
<!-- $$$dockWindowPositionChanged[overload1]$$$dockWindowPositionChangedQ3DockWindow* -->
<h3 class="fn"><a name="dockWindowPositionChanged"></a><span class="type">void</span> Q3MainWindow::<span class="name">dockWindowPositionChanged</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the <i>dockWindow</i> has changed its position. A change in position occurs when a dock window is moved within its dock area or moved to another dock area (including the <tt>Minimized</tt> and <tt>TearOff</tt> dock areas).</p>
<p><b>See also </b><a href="q3mainwindow.html#getLocation">getLocation</a>().</p>
<!-- @@@dockWindowPositionChanged -->
<!-- $$$dockWindows[overload1]$$$dockWindowsQt::Dock -->
<h3 class="fn"><a name="dockWindows"></a><span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> *&gt; Q3MainWindow::<span class="name">dockWindows</span> ( <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>dock</i> ) const</h3>
<p>Returns a list of all the dock windows which are in the <i>dock</i> dock area, regardless of their state.</p>
<p>For example, the <a href="qt-qt3.html#Dock-enum" class="compat">Qt::DockTornOff</a> dock area may contain closed dock windows but these are returned along with the visible dock windows.</p>
<!-- @@@dockWindows -->
<!-- $$$dockWindows$$$dockWindows -->
<h3 class="fn"><a name="dockWindows-2"></a><span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> *&gt; Q3MainWindow::<span class="name">dockWindows</span> () const</h3>
<p>This is an overloaded function.</p>
<p>Returns the list of dock windows which belong to this main window, regardless of which dock area they are in or what their state is, (e.g&#x2e; irrespective of whether they are visible or not).</p>
<!-- @@@dockWindows -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> Q3MainWindow::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$eventFilter[overload1]$$$eventFilterQObject*QEvent* -->
<h3 class="fn"><a name="eventFilter"></a><span class="type">bool</span> Q3MainWindow::<span class="name">eventFilter</span> ( <span class="type"><a href="qobject.html">QObject</a></span> * <i>o</i>, <span class="type"><a href="qevent.html">QEvent</a></span> * <i>e</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qobject.html#eventFilter">QObject::eventFilter</a>().</p>
<!-- @@@eventFilter -->
<!-- $$$getLocation[overload1]$$$getLocationQ3DockWindow*Qt::Dock&int&bool&int& -->
<h3 class="fn"><a name="getLocation"></a><span class="type">bool</span> Q3MainWindow::<span class="name">getLocation</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dw</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> &amp; <i>dock</i>, <span class="type">int</span> &amp; <i>index</i>, <span class="type">bool</span> &amp; <i>nl</i>, <span class="type">int</span> &amp; <i>extraOffset</i> ) const</h3>
<p>Finds the location of the dock window <i>dw</i>.</p>
<p>If the <i>dw</i> dock window is found in the main window the function returns true and populates the <i>dock</i> variable with the dw's dock area and the <i>index</i> with the dw's position within the dock area. It also sets <i>nl</i> to true if the <i>dw</i> begins a new line (otherwise false), and <i>extraOffset</i> with the dock window's offset.</p>
<p>If the <i>dw</i> dock window is not found then the function returns false and the state of <i>dock</i>, <i>index</i>, <i>nl</i> and <i>extraOffset</i> is undefined.</p>
<p>If you want to save and restore dock window positions then use operator&gt;&gt;() and operator&lt;&lt;().</p>
<!-- @@@getLocation -->
<!-- $$$hasDockWindow[overload1]$$$hasDockWindowQ3DockWindow* -->
<h3 class="fn"><a name="hasDockWindow"></a><span class="type">bool</span> Q3MainWindow::<span class="name">hasDockWindow</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dw</i> )</h3>
<p>Returns true if <i>dw</i> is a dock window known to the main window; otherwise returns false.</p>
<!-- @@@hasDockWindow -->
<!-- $$$isCustomizable[overload1]$$$isCustomizable -->
<h3 class="fn"><a name="isCustomizable"></a><span class="type">bool</span> Q3MainWindow::<span class="name">isCustomizable</span> () const<tt> [virtual]</tt></h3>
<p>Returns true if the dock area dock window menu includes the Customize menu item (which calls <a href="q3mainwindow.html#customize">customize</a>() when clicked). Returns false by default, i.e&#x2e; the popup menu will not contain a Customize menu item. You will need to reimplement this function and set it to return true if you wish the user to be able to see the dock window menu.</p>
<p><b>See also </b><a href="q3mainwindow.html#customize">customize</a>().</p>
<!-- @@@isCustomizable -->
<!-- $$$isDockEnabled[overload1]$$$isDockEnabledQt::Dock -->
<h3 class="fn"><a name="isDockEnabled"></a><span class="type">bool</span> Q3MainWindow::<span class="name">isDockEnabled</span> ( <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>dock</i> ) const</h3>
<p>Returns true if the <i>dock</i> dock area is enabled, i.e&#x2e; it can accept user dragged dock windows; otherwise returns false.</p>
<p><b>See also </b><a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>().</p>
<!-- @@@isDockEnabled -->
<!-- $$$isDockEnabled$$$isDockEnabledQ3DockArea* -->
<h3 class="fn"><a name="isDockEnabled-2"></a><span class="type">bool</span> Q3MainWindow::<span class="name">isDockEnabled</span> ( <span class="type"><a href="q3dockarea.html">Q3DockArea</a></span> * <i>area</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns true if dock area <i>area</i> is enabled, i.e&#x2e; it can accept user dragged dock windows; otherwise returns false.</p>
<p><b>See also </b><a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>().</p>
<!-- @@@isDockEnabled -->
<!-- $$$isDockEnabled$$$isDockEnabledQ3DockWindow*Q3DockArea* -->
<h3 class="fn"><a name="isDockEnabled-3"></a><span class="type">bool</span> Q3MainWindow::<span class="name">isDockEnabled</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dw</i>, <span class="type"><a href="q3dockarea.html">Q3DockArea</a></span> * <i>area</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns true if dock area <i>area</i> is enabled for the dock window <i>dw</i>; otherwise returns false.</p>
<p><b>See also </b><a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>().</p>
<!-- @@@isDockEnabled -->
<!-- $$$isDockEnabled$$$isDockEnabledQ3DockWindow*Qt::Dock -->
<h3 class="fn"><a name="isDockEnabled-4"></a><span class="type">bool</span> Q3MainWindow::<span class="name">isDockEnabled</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>tb</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>dock</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns true if dock area <i>dock</i> is enabled for the dock window <i>tb</i>; otherwise returns false.</p>
<p><b>See also </b><a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>().</p>
<!-- @@@isDockEnabled -->
<!-- $$$isDockMenuEnabled[overload1]$$$isDockMenuEnabled -->
<h3 class="fn"><a name="isDockMenuEnabled"></a><span class="type">bool</span> Q3MainWindow::<span class="name">isDockMenuEnabled</span> () const</h3>
<p>Returns true, if the dock window menu is enabled; otherwise returns false.</p>
<p>The menu lists the (<a href="q3mainwindow.html#appropriate">appropriate</a>()) dock windows (which may be shown or hidden), and has a &quot;Line Up Dock Windows&quot; menu item. It will also have a &quot;Customize&quot; menu item if <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() returns true.</p>
<p><a href="q3mainwindow.html#setAppropriate">setAppropriate</a>()</p>
<p><b>See also </b><a href="q3mainwindow.html#setDockEnabled">setDockEnabled</a>(), <a href="q3mainwindow.html#lineUpDockWindows">lineUpDockWindows</a>(), and <a href="q3mainwindow.html#appropriate">appropriate</a>().</p>
<!-- @@@isDockMenuEnabled -->
<!-- $$$leftDock[overload1]$$$leftDock -->
<h3 class="fn"><a name="leftDock"></a><span class="type"><a href="q3dockarea.html">Q3DockArea</a></span> * Q3MainWindow::<span class="name">leftDock</span> () const</h3>
<p>Returns the <tt>Left</tt> dock area</p>
<p><b>See also </b><a href="q3mainwindow.html#rightDock">rightDock</a>(), <a href="q3mainwindow.html#topDock">topDock</a>(), and <a href="q3mainwindow.html#bottomDock">bottomDock</a>().</p>
<!-- @@@leftDock -->
<!-- $$$lineUpDockWindows[overload1]$$$lineUpDockWindowsbool -->
<h3 class="fn"><a name="lineUpDockWindows"></a><span class="type">void</span> Q3MainWindow::<span class="name">lineUpDockWindows</span> ( <span class="type">bool</span> <i>keepNewLines</i> = false )</h3>
<p>This function will line up dock windows within the visible dock areas (<tt>Top</tt>, <tt>Left</tt>, <tt>Right</tt> and <tt>Bottom</tt>) as compactly as possible.</p>
<p>If <i>keepNewLines</i> is true, all dock windows stay on their original lines. If <i>keepNewLines</i> is false then newlines may be removed to achieve the most compact layout possible.</p>
<p>The method only works if <a href="q3mainwindow.html#dockWindowsMovable-prop">dockWindowsMovable</a>() returns true.</p>
<!-- @@@lineUpDockWindows -->
<!-- $$$lineUpToolBars[overload1]$$$lineUpToolBarsbool -->
<h3 class="fn"><a name="lineUpToolBars"></a><span class="type">void</span> Q3MainWindow::<span class="name">lineUpToolBars</span> ( <span class="type">bool</span> <i>keepNewLines</i> = false )</h3>
<p>Lines up the toolbars. Line breaks are preserved if <i>keepNewLines</i> is true.</p>
<!-- @@@lineUpToolBars -->
<!-- $$$menuAboutToShow[overload1]$$$menuAboutToShow -->
<h3 class="fn"><a name="menuAboutToShow"></a><span class="type">void</span> Q3MainWindow::<span class="name">menuAboutToShow</span> ()<tt> [protected slot]</tt></h3>
<p>This slot is called from the aboutToShow() signal of the default dock menu of the mainwindow. The default implementation initializes the menu with all dock windows and toolbars in this slot.</p>
<!-- @@@menuAboutToShow -->
<!-- $$$menuBar[overload1]$$$menuBar -->
<h3 class="fn"><a name="menuBar"></a><span class="type"><a href="qmenubar.html">QMenuBar</a></span> * Q3MainWindow::<span class="name">menuBar</span> () const</h3>
<p>Returns the menu bar for this window.</p>
<p>If there isn't one, then menuBar() creates an empty menu bar.</p>
<p><b>See also </b><a href="q3mainwindow.html#statusBar">statusBar</a>().</p>
<!-- @@@menuBar -->
<!-- $$$minimumSizeHint[overload1]$$$minimumSizeHint -->
<h3 class="fn"><a name="minimumSizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> Q3MainWindow::<span class="name">minimumSizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#minimumSizeHint-prop">QWidget::minimumSizeHint</a>().</p>
<!-- @@@minimumSizeHint -->
<!-- $$$moveDockWindow[overload1]$$$moveDockWindowQ3DockWindow*Qt::Dock -->
<h3 class="fn"><a name="moveDockWindow"></a><span class="type">void</span> Q3MainWindow::<span class="name">moveDockWindow</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>edge</i> = Qt::DockTop )<tt> [virtual]</tt></h3>
<p>Moves <i>dockWindow</i> to the end of the <i>edge</i>.</p>
<p>For vertical edges the end is at the bottom, for horizontal edges (including <tt>Minimized</tt>) the end is at the right.</p>
<p>If <i>dockWindow</i> is managed by another main window, it is first removed from that window.</p>
<!-- @@@moveDockWindow -->
<!-- $$$moveDockWindow$$$moveDockWindowQ3DockWindow*Qt::Dockboolintint -->
<h3 class="fn"><a name="moveDockWindow-2"></a><span class="type">void</span> Q3MainWindow::<span class="name">moveDockWindow</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>edge</i>, <span class="type">bool</span> <i>nl</i>, <span class="type">int</span> <i>index</i>, <span class="type">int</span> <i>extraOffset</i> = -1 )<tt> [virtual]</tt></h3>
<p>This is an overloaded function.</p>
<p>Moves <i>dockWindow</i> to position <i>index</i> within the <i>edge</i> dock area.</p>
<p>Any dock windows with positions <i>index</i> or higher have their position number incremented and any of these on the same line are moved right (down for vertical dock areas) to make room.</p>
<p>If <i>nl</i> is true, a new dock window line is created below the line in which the moved dock window appears and the moved dock window, with any others with higher positions on the same line, is moved to this new line.</p>
<p>The <i>extraOffset</i> is the space to put between the left side of the dock area (top side for vertical dock areas) and the dock window. (This is mostly used for restoring dock windows to the positions the user has dragged them to.)</p>
<p>If <i>dockWindow</i> is managed by another main window, it is first removed from that window.</p>
<!-- @@@moveDockWindow -->
<!-- $$$moveToolBar[overload1]$$$moveToolBarQ3DockWindow*Qt::Dock -->
<h3 class="fn"><a name="moveToolBar"></a><span class="type">void</span> Q3MainWindow::<span class="name">moveToolBar</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>position</i> = Qt::DockTop )</h3>
<p>Moves the given <i>dockWindow</i> into the given <i>position</i>.</p>
<!-- @@@moveToolBar -->
<!-- $$$moveToolBar$$$moveToolBarQ3DockWindow*Qt::Dockboolintint -->
<h3 class="fn"><a name="moveToolBar-2"></a><span class="type">void</span> Q3MainWindow::<span class="name">moveToolBar</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>position</i>, <span class="type">bool</span> <i>nl</i>, <span class="type">int</span> <i>index</i>, <span class="type">int</span> <i>extraOffset</i> = -1 )</h3>
<p>This is an overloaded function.</p>
<p>The <i>dockWindow</i> is made the <i>index</i>-th item in the toolbar, moved over by <i>extraOffset</i>. If <i>nl</i> is true, the dock window is put on a new line.</p>
<!-- @@@moveToolBar -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> Q3MainWindow::<span class="name">paintEvent</span> ( <span class="type"><a href="qpaintevent.html">QPaintEvent</a></span> * )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$pixmapSizeChanged[overload1]$$$pixmapSizeChangedbool -->
<h3 class="fn"><a name="pixmapSizeChanged"></a><span class="type">void</span> Q3MainWindow::<span class="name">pixmapSizeChanged</span> ( <span class="type">bool</span> <i>b</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the <a href="q3mainwindow.html#usesBigPixmaps-prop">setUsesBigPixmaps</a>() is called with a value different to the current setting. The new value is passed in <i>b</i>. All widgets that should respond to such changes, e.g&#x2e; toolbar buttons, must connect to this signal.</p>
<!-- @@@pixmapSizeChanged -->
<!-- $$$removeDockWindow[overload1]$$$removeDockWindowQ3DockWindow* -->
<h3 class="fn"><a name="removeDockWindow"></a><span class="type">void</span> Q3MainWindow::<span class="name">removeDockWindow</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i> )<tt> [virtual]</tt></h3>
<p>Removes <i>dockWindow</i> from the main window's docking area, provided <i>dockWindow</i> is non-null and managed by this main window.</p>
<!-- @@@removeDockWindow -->
<!-- $$$removeToolBar[overload1]$$$removeToolBarQ3DockWindow* -->
<h3 class="fn"><a name="removeToolBar"></a><span class="type">void</span> Q3MainWindow::<span class="name">removeToolBar</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dockWindow</i> )</h3>
<p>Removes the toolbar from the given <i>dockWindow</i>.</p>
<!-- @@@removeToolBar -->
<!-- $$$rightDock[overload1]$$$rightDock -->
<h3 class="fn"><a name="rightDock"></a><span class="type"><a href="q3dockarea.html">Q3DockArea</a></span> * Q3MainWindow::<span class="name">rightDock</span> () const</h3>
<p>Returns the <tt>Right</tt> dock area</p>
<p><b>See also </b><a href="q3mainwindow.html#leftDock">leftDock</a>(), <a href="q3mainwindow.html#topDock">topDock</a>(), and <a href="q3mainwindow.html#bottomDock">bottomDock</a>().</p>
<!-- @@@rightDock -->
<!-- $$$setAppropriate[overload1]$$$setAppropriateQ3DockWindow*bool -->
<h3 class="fn"><a name="setAppropriate"></a><span class="type">void</span> Q3MainWindow::<span class="name">setAppropriate</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dw</i>, <span class="type">bool</span> <i>a</i> )<tt> [virtual slot]</tt></h3>
<p>Use this function to control whether or not the <i>dw</i> dock window's caption should appear as a menu item on the dock window menu that lists the dock windows.</p>
<p>If <i>a</i> is true then the <i>dw</i> will appear as a menu item on the dock window menu. The user is able to change the state (show or hide) a dock window that has a menu item by clicking the item; depending on the state of your application, this may or may not be appropriate. If <i>a</i> is false the <i>dw</i> will not appear on the popup menu.</p>
<p><b>See also </b><a href="q3mainwindow.html#appropriate">appropriate</a>(), <a href="q3mainwindow.html#showDockMenu">showDockMenu</a>(), <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>(), and <a href="q3mainwindow.html#customize">customize</a>().</p>
<!-- @@@setAppropriate -->
<!-- $$$setCentralWidget[overload1]$$$setCentralWidgetQWidget* -->
<h3 class="fn"><a name="setCentralWidget"></a><span class="type">void</span> Q3MainWindow::<span class="name">setCentralWidget</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>w</i> )<tt> [virtual]</tt></h3>
<p>Sets the central widget for this main window to <i>w</i>.</p>
<p>The central widget is surrounded by the left, top, right and bottom dock areas. The menu bar is above the top dock area.</p>
<p><b>See also </b><a href="q3mainwindow.html#centralWidget">centralWidget</a>().</p>
<!-- @@@setCentralWidget -->
<!-- $$$setDockEnabled[overload1]$$$setDockEnabledQt::Dockbool -->
<h3 class="fn"><a name="setDockEnabled"></a><span class="type">void</span> Q3MainWindow::<span class="name">setDockEnabled</span> ( <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>dock</i>, <span class="type">bool</span> <i>enable</i> )<tt> [virtual]</tt></h3>
<p>If <i>enable</i> is true then users can dock windows in the <i>dock</i> area. If <i>enable</i> is false users cannot dock windows in the <i>dock</i> dock area.</p>
<p>Users can dock (drag) dock windows into any enabled dock area.</p>
<p><b>See also </b><a href="q3mainwindow.html#isDockEnabled">isDockEnabled</a>().</p>
<!-- @@@setDockEnabled -->
<!-- $$$setDockEnabled$$$setDockEnabledQ3DockWindow*Qt::Dockbool -->
<h3 class="fn"><a name="setDockEnabled-2"></a><span class="type">void</span> Q3MainWindow::<span class="name">setDockEnabled</span> ( <span class="type"><a href="q3dockwindow.html">Q3DockWindow</a></span> * <i>dw</i>, <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>dock</i>, <span class="type">bool</span> <i>enable</i> )<tt> [virtual]</tt></h3>
<p>This is an overloaded function.</p>
<p>If <i>enable</i> is true then users can dock the <i>dw</i> dock window in the <i>dock</i> area. If <i>enable</i> is false users cannot dock the <i>dw</i> dock window in the <i>dock</i> area.</p>
<p>In general users can dock (drag) dock windows into any enabled dock area. Using this function particular dock areas can be enabled (or disabled) as docking points for particular dock windows.</p>
<!-- @@@setDockEnabled -->
<!-- $$$setDockMenuEnabled[overload1]$$$setDockMenuEnabledbool -->
<h3 class="fn"><a name="setDockMenuEnabled"></a><span class="type">void</span> Q3MainWindow::<span class="name">setDockMenuEnabled</span> ( <span class="type">bool</span> <i>b</i> )<tt> [virtual slot]</tt></h3>
<p>If <i>b</i> is true, then right clicking on a dock window or dock area will pop up the dock window menu. If <i>b</i> is false, right clicking a dock window or dock area will not pop up the menu.</p>
<p>The menu lists the (<a href="q3mainwindow.html#appropriate">appropriate</a>()) dock windows (which may be shown or hidden), and has a &quot;Line Up Dock Windows&quot; item. It will also have a &quot;Customize&quot; menu item if <a href="q3mainwindow.html#isCustomizable">isCustomizable</a>() returns true.</p>
<p><b>See also </b><a href="q3mainwindow.html#lineUpDockWindows">lineUpDockWindows</a>() and <a href="q3mainwindow.html#isDockMenuEnabled">isDockMenuEnabled</a>().</p>
<!-- @@@setDockMenuEnabled -->
<!-- $$$setToolBarsMovable[overload1]$$$setToolBarsMovablebool -->
<h3 class="fn"><a name="setToolBarsMovable"></a><span class="type">void</span> Q3MainWindow::<span class="name">setToolBarsMovable</span> ( <span class="type">bool</span> <i>b</i> )<tt> [slot]</tt></h3>
<p>If <i>b</i> is true the tool bars can be moved.</p>
<p><b>See also </b><a href="q3mainwindow.html#toolBarsMovable">toolBarsMovable</a>().</p>
<!-- @@@setToolBarsMovable -->
<!-- $$$setUpLayout[overload1]$$$setUpLayout -->
<h3 class="fn"><a name="setUpLayout"></a><span class="type">void</span> Q3MainWindow::<span class="name">setUpLayout</span> ()<tt> [virtual protected slot]</tt></h3>
<p>Sets up the geometry management of the window. It is called automatically when needed, so you shouldn't need to call it.</p>
<!-- @@@setUpLayout -->
<!-- $$$setVisible[overload1]$$$setVisiblebool -->
<h3 class="fn"><a name="setVisible"></a><span class="type">void</span> Q3MainWindow::<span class="name">setVisible</span> ( <span class="type">bool</span> <i>visible</i> )<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#visible-prop">QWidget::setVisible</a>().</p>
<!-- @@@setVisible -->
<!-- $$$showDockMenu[overload1]$$$showDockMenuconstQPoint& -->
<h3 class="fn"><a name="showDockMenu"></a><span class="type">bool</span> Q3MainWindow::<span class="name">showDockMenu</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>globalPos</i> )<tt> [virtual protected slot]</tt></h3>
<p>Shows the dock menu at the position <i>globalPos</i>. The menu lists the dock windows so that they can be shown (or hidden), lined up, and possibly customized. Returns true if the menu is shown; otherwise returns false.</p>
<p>If you want a custom menu, reimplement this function. You can create the menu from scratch or call <a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a>() and modify the result.</p>
<p>The default implementation uses the dock window menu which gets created by <a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a>(). You can reimplement <a href="q3mainwindow.html#createDockWindowMenu">createDockWindowMenu</a>() if you want to use your own specialized popup menu.</p>
<!-- @@@showDockMenu -->
<!-- $$$sizeHint[overload1]$$$sizeHint -->
<h3 class="fn"><a name="sizeHint"></a><span class="type"><a href="qsize.html">QSize</a></span> Q3MainWindow::<span class="name">sizeHint</span> () const<tt> [virtual]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#sizeHint-prop">QWidget::sizeHint</a>().</p>
<!-- @@@sizeHint -->
<!-- $$$statusBar[overload1]$$$statusBar -->
<h3 class="fn"><a name="statusBar"></a><span class="type"><a href="qstatusbar.html">QStatusBar</a></span> * Q3MainWindow::<span class="name">statusBar</span> () const</h3>
<p>Returns this main window's status bar. If there isn't one, statusBar() creates an empty status bar, and if necessary a tool tip group too.</p>
<p><b>See also </b><a href="q3mainwindow.html#menuBar">menuBar</a>().</p>
<!-- @@@statusBar -->
<!-- $$$toolBarPositionChanged[overload1]$$$toolBarPositionChangedQ3ToolBar* -->
<h3 class="fn"><a name="toolBarPositionChanged"></a><span class="type">void</span> Q3MainWindow::<span class="name">toolBarPositionChanged</span> ( <span class="type"><a href="q3toolbar.html">Q3ToolBar</a></span> * <i>toolbar</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when a <i>toolbar</i> is moved.</p>
<!-- @@@toolBarPositionChanged -->
<!-- $$$toolBars[overload1]$$$toolBarsQt::Dock -->
<h3 class="fn"><a name="toolBars"></a><span class="type"><a href="qlist.html">QList</a></span>&lt;<span class="type"><a href="q3toolbar.html">Q3ToolBar</a></span> *&gt; Q3MainWindow::<span class="name">toolBars</span> ( <span class="type"><a href="qt-qt3.html#Dock-enum">Qt::Dock</a></span> <i>dock</i> ) const</h3>
<p>Returns a list of all the toolbars which are in the <i>dock</i> dock area, regardless of their state.</p>
<p>For example, the <tt>TornOff</tt> dock area may contain closed toolbars but these are returned along with the visible toolbars.</p>
<p><b>See also </b><a href="q3mainwindow.html#dockWindows">dockWindows</a>().</p>
<!-- @@@toolBars -->
<!-- $$$toolBarsMovable[overload1]$$$toolBarsMovable -->
<h3 class="fn"><a name="toolBarsMovable"></a><span class="type">bool</span> Q3MainWindow::<span class="name">toolBarsMovable</span> () const</h3>
<p>Returns true if the window allows its toolbars to be moved; otherwise returns false.</p>
<p><b>See also </b><a href="q3mainwindow.html#setToolBarsMovable">setToolBarsMovable</a>().</p>
<!-- @@@toolBarsMovable -->
<!-- $$$topDock[overload1]$$$topDock -->
<h3 class="fn"><a name="topDock"></a><span class="type"><a href="q3dockarea.html">Q3DockArea</a></span> * Q3MainWindow::<span class="name">topDock</span> () const</h3>
<p>Returns the <tt>Top</tt> dock area</p>
<p><b>See also </b><a href="q3mainwindow.html#bottomDock">bottomDock</a>(), <a href="q3mainwindow.html#leftDock">leftDock</a>(), and <a href="q3mainwindow.html#rightDock">rightDock</a>().</p>
<!-- @@@topDock -->
<!-- $$$usesTextLabelChanged[overload1]$$$usesTextLabelChangedbool -->
<h3 class="fn"><a name="usesTextLabelChanged"></a><span class="type">void</span> Q3MainWindow::<span class="name">usesTextLabelChanged</span> ( <span class="type">bool</span> <i>b</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted whenever the <a href="q3mainwindow.html#usesTextLabel-prop">setUsesTextLabel</a>() is called with a value different to the current setting. The new value is passed in <i>b</i>. All widgets that should respond to such changes, e.g&#x2e; toolbar buttons, must connect to this signal.</p>
<!-- @@@usesTextLabelChanged -->
<!-- $$$whatsThis[overload1]$$$whatsThis -->
<h3 class="fn"><a name="whatsThis"></a><span class="type">void</span> Q3MainWindow::<span class="name">whatsThis</span> ()<tt> [virtual slot]</tt></h3>
<p>Enters 'What's This?' mode and returns immediately.</p>
<p>This is the same as <a href="qwhatsthis.html#enterWhatsThisMode">QWhatsThis::enterWhatsThisMode</a>(), but implemented as a main window object's slot. This way it can easily be used for popup menus, for example:</p>
<pre class="cpp"> <span class="type"><a href="q3popupmenu.html">Q3PopupMenu</a></span> <span class="operator">*</span> help <span class="operator">=</span> <span class="keyword">new</span> <span class="type"><a href="q3popupmenu.html">Q3PopupMenu</a></span>(<span class="keyword">this</span>);
 help<span class="operator">-</span><span class="operator">&gt;</span>insertItem(<span class="string">&quot;What's &amp;This&quot;</span><span class="operator">,</span> <span class="keyword">this</span> <span class="operator">,</span> SLOT(enterWhatsThis())<span class="operator">,</span> <span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>SHIFT<span class="operator">+</span><span class="type"><a href="qt.html">Qt</a></span><span class="operator">::</span>Key_F1);</pre>
<p><b>See also </b><a href="q3whatsthis.html#enterWhatsThisMode">Q3WhatsThis::enterWhatsThisMode</a>().</p>
<!-- @@@whatsThis -->
</div>
<div class="relnonmem">
<h2>Related Non-Members</h2>
<!-- $$$operator<<$$$operator<<QTextStream&constQ3MainWindow& -->
<h3 class="fn"><a name="operator-lt-lt-59"></a><span class="type"><a href="qtextstream.html">QTextStream</a></span> &amp; <span class="name">operator&lt;&lt;</span> ( <span class="type"><a href="qtextstream.html">QTextStream</a></span> &amp; <i>ts</i>, const <span class="type">Q3MainWindow</span> &amp; <i>mainWindow</i> )</h3>
<p>Writes the layout (sizes and positions) of the dock windows in the dock areas of the <a href="q3mainwindow.html" class="compat">Q3MainWindow</a> <i>mainWindow</i>, including <tt>Minimized</tt> and <tt>TornOff</tt> dock windows, to the text stream <i>ts</i>.</p>
<p>This can be used, for example, in conjunction with <a href="qsettings.html">QSettings</a> to save the user's layout when the <i>mainWindow</i> receives a close event.</p>
<p><b>See also </b><a href="qwidget.html#closeEvent">QWidget::closeEvent</a>().</p>
<!-- @@@operator<< -->
<!-- $$$operator>>$$$operator>>QTextStream&Q3MainWindow& -->
<h3 class="fn"><a name="operator-gt-gt-39"></a><span class="type"><a href="qtextstream.html">QTextStream</a></span> &amp; <span class="name">operator&gt;&gt;</span> ( <span class="type"><a href="qtextstream.html">QTextStream</a></span> &amp; <i>ts</i>, <span class="type">Q3MainWindow</span> &amp; <i>mainWindow</i> )</h3>
<p>Reads the layout (sizes and positions) of the dock windows in the dock areas of the <a href="q3mainwindow.html" class="compat">Q3MainWindow</a> <i>mainWindow</i> from the text stream, <i>ts</i>, including <tt>Minimized</tt> and <tt>TornOff</tt> dock windows. Restores the dock windows and dock areas to these sizes and positions. The layout information must be in the format produced by operator&lt;&lt;().</p>
<p>This can be used, for example, in conjunction with <a href="qsettings.html">QSettings</a> to restore the user's layout.</p>
<!-- @@@operator>> -->
</div>
      </div>
    </div>
    </div> 
    <div class="ft">
      <span></span>
    </div>
  </div> 
  <div class="footer">
    <p>
      <acronym title="Copyright">&copy;</acronym> 2013 Digia Plc and/or its
      subsidiaries. Documentation contributions included herein are the copyrights of
      their respective owners.</p>
    <br />
    <p>
      The documentation provided herein is licensed under the terms of the
      <a href="http://www.gnu.org/licenses/fdl.html">GNU Free Documentation
      License version 1.3</a> as published by the Free Software Foundation.</p>
    <p>
      Documentation sources may be obtained from <a href="http://www.qt-project.org">
      www.qt-project.org</a>.</p>
    <br />
    <p>
      Digia, Qt and their respective logos are trademarks of Digia Plc 
      in Finland and/or other countries worldwide. All other trademarks are property
      of their respective owners. <a title="Privacy Policy"
      href="http://en.gitorious.org/privacy_policy/">Privacy Policy</a></p>
  </div>

  <script src="scripts/functions.js" type="text/javascript"></script>
</body>
</html>