Sophie

Sophie

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

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" />
<!-- qtoolbar.cpp -->
  <title>Qt 4.8: QToolBar 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><a href="qtgui.html">QtGui</a></li>
<li>QToolBar</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="#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="#details">Detailed Description</a></li>
</ul>
</div>
<h1 class="title">QToolBar Class Reference</h1>
<!-- $$$QToolBar-brief -->
<p>The QToolBar class provides a movable panel that contains a set of controls. <a href="#details">More...</a></p>
<!-- @@@QToolBar -->
<pre class="cpp"> <span class="preprocessor">#include &lt;QToolBar&gt;</span></pre><p><b>Inherits: </b><a href="qwidget.html">QWidget</a>.</p>
<p><b>Inherited by: </b></p>
<ul>
<li><a href="qtoolbar-members.html">List of all members, including inherited members</a></li>
<li><a href="qtoolbar-qt3.html">Qt 3 support members</a></li>
</ul>
<a name="properties"></a>
<h2>Properties</h2>
<table class="propsummary">
<tr><td class="topAlign"><ul>
<li class="fn"><b><a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a></b> : Qt::ToolBarAreas</li>
<li class="fn"><b><a href="qtoolbar.html#floatable-prop">floatable</a></b> : bool</li>
<li class="fn"><b><a href="qtoolbar.html#floating-prop">floating</a></b> : const bool</li>
<li class="fn"><b><a href="qtoolbar.html#iconSize-prop">iconSize</a></b> : QSize</li>
</ul></td><td class="topAlign"><ul>
<li class="fn"><b><a href="qtoolbar.html#movable-prop">movable</a></b> : bool</li>
<li class="fn"><b><a href="qtoolbar.html#orientation-prop">orientation</a></b> : Qt::Orientation</li>
<li class="fn"><b><a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a></b> : Qt::ToolButtonStyle</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="qtoolbar.html#QToolBar">QToolBar</a></b> ( const QString &amp; <i>title</i>, QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#QToolBar-2">QToolBar</a></b> ( QWidget * <i>parent</i> = 0 )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#dtor.QToolBar">~QToolBar</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#actionAt">actionAt</a></b> ( const QPoint &amp; <i>p</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#actionAt-2">actionAt</a></b> ( int <i>x</i>, int <i>y</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction">addAction</a></b> ( QAction * <i>action</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction-2">addAction</a></b> ( const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction-3">addAction</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction-4">addAction</a></b> ( const QString &amp; <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction-5">addAction</a></b> ( const QIcon &amp; <i>icon</i>, const QString &amp; <i>text</i>, const QObject * <i>receiver</i>, const char * <i>member</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addSeparator">addSeparator</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addWidget">addWidget</a></b> ( QWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::ToolBarAreas </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#clear">clear</a></b> ()</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QSize </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#iconSize-prop">iconSize</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#insertSeparator">insertSeparator</a></b> ( QAction * <i>before</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#insertWidget">insertWidget</a></b> ( QAction * <i>before</i>, QWidget * <i>widget</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#isAreaAllowed">isAreaAllowed</a></b> ( Qt::ToolBarArea <i>area</i> ) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#floatable-prop">isFloatable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#floating-prop">isFloating</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> bool </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#movable-prop">isMovable</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::Orientation </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#orientation-prop">orientation</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#allowedAreas-prop">setAllowedAreas</a></b> ( Qt::ToolBarAreas <i>areas</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#floatable-prop">setFloatable</a></b> ( bool <i>floatable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#movable-prop">setMovable</a></b> ( bool <i>movable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#orientation-prop">setOrientation</a></b> ( Qt::Orientation <i>orientation</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#toggleViewAction">toggleViewAction</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> Qt::ToolButtonStyle </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a></b> () const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QWidget * </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#widgetForAction">widgetForAction</a></b> ( QAction * <i>action</i> ) 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"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#iconSize-prop">setIconSize</a></b> ( const QSize &amp; <i>iconSize</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#toolButtonStyle-prop">setToolButtonStyle</a></b> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</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="qtoolbar.html#actionTriggered">actionTriggered</a></b> ( QAction * <i>action</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#allowedAreasChanged">allowedAreasChanged</a></b> ( Qt::ToolBarAreas <i>allowedAreas</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#iconSizeChanged">iconSizeChanged</a></b> ( const QSize &amp; <i>iconSize</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#movableChanged">movableChanged</a></b> ( bool <i>movable</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#orientationChanged">orientationChanged</a></b> ( Qt::Orientation <i>orientation</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#toolButtonStyleChanged">toolButtonStyleChanged</a></b> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#topLevelChanged">topLevelChanged</a></b> ( bool <i>topLevel</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#visibilityChanged">visibilityChanged</a></b> ( bool <i>visible</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="qtoolbar.html#actionEvent">actionEvent</a></b> ( QActionEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#changeEvent">changeEvent</a></b> ( QEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#childEvent">childEvent</a></b> ( QChildEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual bool </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#event">event</a></b> ( QEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#paintEvent">paintEvent</a></b> ( QPaintEvent * <i>event</i> )</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> virtual void </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#resizeEvent">resizeEvent</a></b> ( QResizeEvent * <i>event</i> )</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>
<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>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
</ul>
<a name="details"></a>
<!-- $$$QToolBar-description -->
<div class="descr">
<h2>Detailed Description</h2>
<p>The QToolBar class provides a movable panel that contains a set of controls.</p>
<p>Toolbar buttons are added by adding <i>actions</i>, using <a href="qtoolbar.html#addAction">addAction</a>() or <a href="qwidget.html#insertAction">insertAction</a>(). Groups of buttons can be separated using <a href="qtoolbar.html#addSeparator">addSeparator</a>() or <a href="qtoolbar.html#insertSeparator">insertSeparator</a>(). If a toolbar button is not appropriate, a widget can be inserted instead using <a href="qtoolbar.html#addWidget">addWidget</a>() or <a href="qtoolbar.html#insertWidget">insertWidget</a>(); examples of suitable widgets are <a href="qspinbox.html">QSpinBox</a>, <a href="qdoublespinbox.html">QDoubleSpinBox</a>, and <a href="qcombobox.html">QComboBox</a>. When a toolbar button is pressed it emits the <a href="qtoolbar.html#actionTriggered">actionTriggered</a>() signal.</p>
<p>A toolbar can be fixed in place in a particular area (e.g&#x2e; at the top of the window), or it can be movable (<a href="qtoolbar.html#movable-prop">isMovable</a>()) between toolbar areas; see <a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a>() and <a href="qtoolbar.html#isAreaAllowed">isAreaAllowed</a>().</p>
<p>When a toolbar is resized in such a way that it is too small to show all the items it contains, an extension button will appear as the last item in the toolbar. Pressing the extension button will pop up a menu containing the items that does not currently fit in the toolbar.</p>
<p>When a QToolBar is not a child of a <a href="qmainwindow.html">QMainWindow</a>, it loses the ability to populate the extension pop up with widgets added to the toolbar using <a href="qtoolbar.html#addWidget">addWidget</a>(). Please use widget actions created by inheriting <a href="qwidgetaction.html">QWidgetAction</a> and implementing <a href="qwidgetaction.html#createWidget">QWidgetAction::createWidget</a>() instead.</p>
</div>
<p><b>See also </b><a href="qtoolbutton.html">QToolButton</a>, <a href="qmenu.html">QMenu</a>, <a href="qaction.html">QAction</a>, and <a href="mainwindows-application.html">Application Example</a>.</p>
<!-- @@@QToolBar -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$allowedAreas-prop$$$allowedAreas$$$setAllowedAreasQt::ToolBarAreas$$$allowedAreasChangedQt::ToolBarAreas -->
<h3 class="fn"><a name="allowedAreas-prop"></a><span class="name">allowedAreas</span> : <span class="type"><a href="qt.html#ToolBarArea-enum">Qt::ToolBarAreas</a></span></h3>
<p>This property holds areas where the toolbar may be placed.</p>
<p>The default is <a href="qt.html#ToolBarArea-enum">Qt::AllToolBarAreas</a>.</p>
<p>This property only makes sense if the toolbar is in a <a href="qmainwindow.html">QMainWindow</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt::ToolBarAreas </td><td class="memItemRight bottomAlign"><span class="name"><b>allowedAreas</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setAllowedAreas</b></span> ( Qt::ToolBarAreas <i>areas</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qtoolbar.html#allowedAreasChanged">allowedAreasChanged</a></b></span> ( Qt::ToolBarAreas <i>allowedAreas</i> )</td></tr>
</table>
<p><b>See also </b><a href="qtoolbar.html#movable-prop">movable</a>.</p>
<!-- @@@allowedAreas -->
<!-- $$$floatable-prop$$$isFloatable$$$setFloatablebool -->
<h3 class="fn"><a name="floatable-prop"></a><span class="name">floatable</span> : <span class="type">bool</span></h3>
<p>This property holds whether the toolbar can be dragged and dropped as an independent window.</p>
<p>The default is true.</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>isFloatable</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setFloatable</b></span> ( bool <i>floatable</i> )</td></tr>
</table>
<!-- @@@floatable -->
<!-- $$$floating-prop$$$isFloating -->
<h3 class="fn"><a name="floating-prop"></a><span class="name">floating</span> : const <span class="type">bool</span></h3>
<p>This property holds whether the toolbar is an independent window.</p>
<p>By default, this property is true.</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>isFloating</b></span> () const</td></tr>
</table>
<p><b>See also </b><a href="qwidget.html#isWindow">QWidget::isWindow</a>().</p>
<!-- @@@floating -->
<!-- $$$iconSize-prop$$$iconSize$$$setIconSizeconstQSize&$$$iconSizeChangedconstQSize& -->
<h3 class="fn"><a name="iconSize-prop"></a><span class="name">iconSize</span> : <span class="type"><a href="qsize.html">QSize</a></span></h3>
<p>This property holds size of icons in the toolbar.</p>
<p>The default size is determined by the application's style and is derived from the <a href="qstyle.html#PixelMetric-enum">QStyle::PM_ToolBarIconSize</a> pixel metric. It is the maximum size an icon can have. Icons of smaller size will not be scaled up.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> QSize </td><td class="memItemRight bottomAlign"><span class="name"><b>iconSize</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setIconSize</b></span> ( const QSize &amp; <i>iconSize</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qtoolbar.html#iconSizeChanged">iconSizeChanged</a></b></span> ( const QSize &amp; <i>iconSize</i> )</td></tr>
</table>
<!-- @@@iconSize -->
<!-- $$$movable-prop$$$isMovable$$$setMovablebool$$$movableChangedbool -->
<h3 class="fn"><a name="movable-prop"></a><span class="name">movable</span> : <span class="type">bool</span></h3>
<p>This property holds whether the user can move the toolbar within the toolbar area, or between toolbar areas.</p>
<p>By default, this property is true.</p>
<p>This property only makes sense if the toolbar is in a <a href="qmainwindow.html">QMainWindow</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>isMovable</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setMovable</b></span> ( bool <i>movable</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qtoolbar.html#movableChanged">movableChanged</a></b></span> ( bool <i>movable</i> )</td></tr>
</table>
<p><b>See also </b><a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a>.</p>
<!-- @@@movable -->
<!-- $$$orientation-prop$$$orientation$$$setOrientationQt::Orientation$$$orientationChangedQt::Orientation -->
<h3 class="fn"><a name="orientation-prop"></a><span class="name">orientation</span> : <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span></h3>
<p>This property holds orientation of the toolbar.</p>
<p>The default is <a href="qt.html#Orientation-enum">Qt::Horizontal</a>.</p>
<p>This function should not be used when the toolbar is managed by <a href="qmainwindow.html">QMainWindow</a>. You can use <a href="qmainwindow.html#addToolBar">QMainWindow::addToolBar</a>() or <a href="qmainwindow.html#insertToolBar">QMainWindow::insertToolBar</a>() if you wish to move a toolbar (that is already added to a main window) to another <a href="qt.html#ToolBarArea-enum">Qt::ToolBarArea</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt::Orientation </td><td class="memItemRight bottomAlign"><span class="name"><b>orientation</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setOrientation</b></span> ( Qt::Orientation <i>orientation</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qtoolbar.html#orientationChanged">orientationChanged</a></b></span> ( Qt::Orientation <i>orientation</i> )</td></tr>
</table>
<!-- @@@orientation -->
<!-- $$$toolButtonStyle-prop$$$toolButtonStyle$$$setToolButtonStyleQt::ToolButtonStyle$$$toolButtonStyleChangedQt::ToolButtonStyle -->
<h3 class="fn"><a name="toolButtonStyle-prop"></a><span class="name">toolButtonStyle</span> : <span class="type"><a href="qt.html#ToolButtonStyle-enum">Qt::ToolButtonStyle</a></span></h3>
<p>This property holds the style of toolbar buttons.</p>
<p>This property defines the style of all tool buttons that are added as <a href="qaction.html">QAction</a>s. Note that if you add a <a href="qtoolbutton.html">QToolButton</a> with the <a href="qtoolbar.html#addWidget">addWidget</a>() method, it will not get this button style.</p>
<p>The default is <a href="qt.html#ToolButtonStyle-enum">Qt::ToolButtonIconOnly</a>.</p>
<p><b>Access functions:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> Qt::ToolButtonStyle </td><td class="memItemRight bottomAlign"><span class="name"><b>toolButtonStyle</b></span> () const</td></tr>
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b>setToolButtonStyle</b></span> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</td></tr>
</table>
<p><b>Notifier signal:</b></p>
<table class="alignedsummary">
<tr><td class="memItemLeft topAlign rightAlign"> void </td><td class="memItemRight bottomAlign"><span class="name"><b><a href="qtoolbar.html#toolButtonStyleChanged">toolButtonStyleChanged</a></b></span> ( Qt::ToolButtonStyle <i>toolButtonStyle</i> )</td></tr>
</table>
<!-- @@@toolButtonStyle -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QToolBar[overload1]$$$QToolBarconstQString&QWidget* -->
<h3 class="fn"><a name="QToolBar"></a>QToolBar::<span class="name">QToolBar</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>title</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qtoolbar.html">QToolBar</a> with the given <i>parent</i>.</p>
<p>The given window <i>title</i> identifies the toolbar and is shown in the context menu provided by <a href="qmainwindow.html">QMainWindow</a>.</p>
<p><b>See also </b><a href="qwidget.html#windowTitle-prop">setWindowTitle</a>().</p>
<!-- @@@QToolBar -->
<!-- $$$QToolBar$$$QToolBarQWidget* -->
<h3 class="fn"><a name="QToolBar-2"></a>QToolBar::<span class="name">QToolBar</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>parent</i> = 0 )</h3>
<p>Constructs a <a href="qtoolbar.html">QToolBar</a> with the given <i>parent</i>.</p>
<!-- @@@QToolBar -->
<!-- $$$~QToolBar[overload1]$$$~QToolBar -->
<h3 class="fn"><a name="dtor.QToolBar"></a>QToolBar::<span class="name">~QToolBar</span> ()</h3>
<p>Destroys the toolbar.</p>
<!-- @@@~QToolBar -->
<!-- $$$actionAt[overload1]$$$actionAtconstQPoint& -->
<h3 class="fn"><a name="actionAt"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">actionAt</span> ( const <span class="type"><a href="qpoint.html">QPoint</a></span> &amp; <i>p</i> ) const</h3>
<p>Returns the action at point <i>p</i>. This function returns zero if no action was found.</p>
<p><b>See also </b><a href="qwidget.html#childAt">QWidget::childAt</a>().</p>
<!-- @@@actionAt -->
<!-- $$$actionAt$$$actionAtintint -->
<h3 class="fn"><a name="actionAt-2"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">actionAt</span> ( <span class="type">int</span> <i>x</i>, <span class="type">int</span> <i>y</i> ) const</h3>
<p>This is an overloaded function.</p>
<p>Returns the action at the point <i>x</i>, <i>y</i>. This function returns zero if no action was found.</p>
<!-- @@@actionAt -->
<!-- $$$actionEvent[overload1]$$$actionEventQActionEvent* -->
<h3 class="fn"><a name="actionEvent"></a><span class="type">void</span> QToolBar::<span class="name">actionEvent</span> ( <span class="type"><a href="qactionevent.html">QActionEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#actionEvent">QWidget::actionEvent</a>().</p>
<!-- @@@actionEvent -->
<!-- $$$actionTriggered[overload1]$$$actionTriggeredQAction* -->
<h3 class="fn"><a name="actionTriggered"></a><span class="type">void</span> QToolBar::<span class="name">actionTriggered</span> ( <span class="type"><a href="qaction.html">QAction</a></span> * <i>action</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when an action in this toolbar is triggered. This happens when the action's tool button is pressed, or when the action is triggered in some other way outside the tool bar. The parameter holds the triggered <i>action</i>.</p>
<!-- @@@actionTriggered -->
<!-- $$$addAction[overload1]$$$addActionQAction* -->
<h3 class="fn"><a name="addAction"></a><span class="type">void</span> QToolBar::<span class="name">addAction</span> ( <span class="type"><a href="qaction.html">QAction</a></span> * <i>action</i> )</h3>
<p>This is an overloaded function.</p>
<p>Appends the action <i>action</i> to the toolbar's list of actions.</p>
<p><b>See also </b><a href="qmenu.html#addAction">QMenu::addAction</a>() and <a href="qwidget.html#addAction">QWidget::addAction</a>().</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQString& -->
<h3 class="fn"><a name="addAction-2"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">addAction</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>This is an overloaded function.</p>
<p>Creates a new action with the given <i>text</i>. This action is added to the end of the toolbar.</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQIcon&constQString& -->
<h3 class="fn"><a name="addAction-3"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">addAction</span> ( const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i> )</h3>
<p>This is an overloaded function.</p>
<p>Creates a new action with the given <i>icon</i> and <i>text</i>. This action is added to the end of the toolbar.</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQString&constQObject*constchar* -->
<h3 class="fn"><a name="addAction-4"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">addAction</span> ( const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qobject.html">QObject</a></span> * <i>receiver</i>, const <span class="type">char</span> * <i>member</i> )</h3>
<p>This is an overloaded function.</p>
<p>Creates a new action with the given <i>text</i>. This action is added to the end of the toolbar. The action's <a href="qaction.html#triggered">triggered()</a> signal is connected to <i>member</i> in <i>receiver</i>.</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQIcon&constQString&constQObject*constchar* -->
<h3 class="fn"><a name="addAction-5"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">addAction</span> ( const <span class="type"><a href="qicon.html">QIcon</a></span> &amp; <i>icon</i>, const <span class="type"><a href="qstring.html">QString</a></span> &amp; <i>text</i>, const <span class="type"><a href="qobject.html">QObject</a></span> * <i>receiver</i>, const <span class="type">char</span> * <i>member</i> )</h3>
<p>This is an overloaded function.</p>
<p>Creates a new action with the icon <i>icon</i> and text <i>text</i>. This action is added to the end of the toolbar. The action's <a href="qaction.html#triggered">triggered()</a> signal is connected to <i>member</i> in <i>receiver</i>.</p>
<!-- @@@addAction -->
<!-- $$$addSeparator[overload1]$$$addSeparator -->
<h3 class="fn"><a name="addSeparator"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">addSeparator</span> ()</h3>
<p>Adds a separator to the end of the toolbar.</p>
<p><b>See also </b><a href="qtoolbar.html#insertSeparator">insertSeparator</a>().</p>
<!-- @@@addSeparator -->
<!-- $$$addWidget[overload1]$$$addWidgetQWidget* -->
<h3 class="fn"><a name="addWidget"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">addWidget</span> ( <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>widget</i> )</h3>
<p>Adds the given <i>widget</i> to the toolbar as the toolbar's last item.</p>
<p>The toolbar takes ownership of <i>widget</i>.</p>
<p>If you add a <a href="qtoolbutton.html">QToolButton</a> with this method, the tools bar's <a href="qt.html#ToolButtonStyle-enum">Qt::ToolButtonStyle</a> will not be respected.</p>
<p><b>Note:</b> You should use <a href="qaction.html#visible-prop">QAction::setVisible</a>() to change the visibility of the widget. Using <a href="qwidget.html#visible-prop">QWidget::setVisible</a>(), <a href="qwidget.html#show">QWidget::show</a>() and <a href="qwidget.html#hide">QWidget::hide</a>() does not work.</p>
<p><b>See also </b><a href="qtoolbar.html#insertWidget">insertWidget</a>().</p>
<!-- @@@addWidget -->
<!-- $$$allowedAreasChanged[overload1]$$$allowedAreasChangedQt::ToolBarAreas -->
<h3 class="fn"><a name="allowedAreasChanged"></a><span class="type">void</span> QToolBar::<span class="name">allowedAreasChanged</span> ( <span class="type"><a href="qt.html#ToolBarArea-enum">Qt::ToolBarAreas</a></span> <i>allowedAreas</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the collection of allowed areas for the toolbar is changed. The new areas in which the toolbar can be positioned are specified by <i>allowedAreas</i>.</p>
<p><b>See also </b><a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a>.</p>
<!-- @@@allowedAreasChanged -->
<!-- $$$changeEvent[overload1]$$$changeEventQEvent* -->
<h3 class="fn"><a name="changeEvent"></a><span class="type">void</span> QToolBar::<span class="name">changeEvent</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
<!-- @@@changeEvent -->
<!-- $$$childEvent[overload1]$$$childEventQChildEvent* -->
<h3 class="fn"><a name="childEvent"></a><span class="type">void</span> QToolBar::<span class="name">childEvent</span> ( <span class="type"><a href="qchildevent.html">QChildEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#childEvent">QObject::childEvent</a>().</p>
<!-- @@@childEvent -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn"><a name="clear"></a><span class="type">void</span> QToolBar::<span class="name">clear</span> ()</h3>
<p>Removes all actions from the toolbar.</p>
<p><b>See also </b><a href="qwidget.html#removeAction">removeAction</a>().</p>
<!-- @@@clear -->
<!-- $$$event[overload1]$$$eventQEvent* -->
<h3 class="fn"><a name="event"></a><span class="type">bool</span> QToolBar::<span class="name">event</span> ( <span class="type"><a href="qevent.html">QEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$iconSizeChanged[overload1]$$$iconSizeChangedconstQSize& -->
<h3 class="fn"><a name="iconSizeChanged"></a><span class="type">void</span> QToolBar::<span class="name">iconSizeChanged</span> ( const <span class="type"><a href="qsize.html">QSize</a></span> &amp; <i>iconSize</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the icon size is changed. The <i>iconSize</i> parameter holds the toolbar's new icon size.</p>
<p><b>See also </b><a href="qtoolbar.html#iconSize-prop">iconSize</a> and <a href="qmainwindow.html#iconSize-prop">QMainWindow::iconSize</a>.</p>
<!-- @@@iconSizeChanged -->
<!-- $$$insertSeparator[overload1]$$$insertSeparatorQAction* -->
<h3 class="fn"><a name="insertSeparator"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">insertSeparator</span> ( <span class="type"><a href="qaction.html">QAction</a></span> * <i>before</i> )</h3>
<p>Inserts a separator into the toolbar in front of the toolbar item associated with the <i>before</i> action.</p>
<p><b>See also </b><a href="qtoolbar.html#addSeparator">addSeparator</a>().</p>
<!-- @@@insertSeparator -->
<!-- $$$insertWidget[overload1]$$$insertWidgetQAction*QWidget* -->
<h3 class="fn"><a name="insertWidget"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">insertWidget</span> ( <span class="type"><a href="qaction.html">QAction</a></span> * <i>before</i>, <span class="type"><a href="qwidget.html">QWidget</a></span> * <i>widget</i> )</h3>
<p>Inserts the given <i>widget</i> in front of the toolbar item associated with the <i>before</i> action.</p>
<p>Note: You should use <a href="qaction.html#visible-prop">QAction::setVisible</a>() to change the visibility of the widget. Using <a href="qwidget.html#visible-prop">QWidget::setVisible</a>(), <a href="qwidget.html#show">QWidget::show</a>() and <a href="qwidget.html#hide">QWidget::hide</a>() does not work.</p>
<p><b>See also </b><a href="qtoolbar.html#addWidget">addWidget</a>().</p>
<!-- @@@insertWidget -->
<!-- $$$isAreaAllowed[overload1]$$$isAreaAllowedQt::ToolBarArea -->
<h3 class="fn"><a name="isAreaAllowed"></a><span class="type">bool</span> QToolBar::<span class="name">isAreaAllowed</span> ( <span class="type"><a href="qt.html#ToolBarArea-enum">Qt::ToolBarArea</a></span> <i>area</i> ) const</h3>
<p>Returns true if this toolbar is dockable in the given <i>area</i>; otherwise returns false.</p>
<!-- @@@isAreaAllowed -->
<!-- $$$movableChanged[overload1]$$$movableChangedbool -->
<h3 class="fn"><a name="movableChanged"></a><span class="type">void</span> QToolBar::<span class="name">movableChanged</span> ( <span class="type">bool</span> <i>movable</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the toolbar becomes movable or fixed. If the toolbar can be moved, <i>movable</i> is true; otherwise it is false.</p>
<p><b>See also </b><a href="qtoolbar.html#movable-prop">movable</a>.</p>
<!-- @@@movableChanged -->
<!-- $$$orientationChanged[overload1]$$$orientationChangedQt::Orientation -->
<h3 class="fn"><a name="orientationChanged"></a><span class="type">void</span> QToolBar::<span class="name">orientationChanged</span> ( <span class="type"><a href="qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the orientation of the toolbar changes. The new orientation is specified by the <i>orientation</i> given.</p>
<p><b>See also </b><a href="qtoolbar.html#orientation-prop">orientation</a>.</p>
<!-- @@@orientationChanged -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn"><a name="paintEvent"></a><span class="type">void</span> QToolBar::<span class="name">paintEvent</span> ( <span class="type"><a href="qpaintevent.html">QPaintEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$resizeEvent[overload1]$$$resizeEventQResizeEvent* -->
<h3 class="fn"><a name="resizeEvent"></a><span class="type">void</span> QToolBar::<span class="name">resizeEvent</span> ( <span class="type"><a href="qresizeevent.html">QResizeEvent</a></span> * <i>event</i> )<tt> [virtual protected]</tt></h3>
<p>Reimplemented from <a href="qwidget.html#resizeEvent">QWidget::resizeEvent</a>().</p>
<!-- @@@resizeEvent -->
<!-- $$$toggleViewAction[overload1]$$$toggleViewAction -->
<h3 class="fn"><a name="toggleViewAction"></a><span class="type"><a href="qaction.html">QAction</a></span> * QToolBar::<span class="name">toggleViewAction</span> () const</h3>
<p>Returns a checkable action that can be used to show or hide this toolbar.</p>
<p>The action's text is set to the toolbar's window title.</p>
<p><b>See also </b><a href="qaction.html#text-prop">QAction::text</a> and <a href="qwidget.html#windowTitle-prop">QWidget::windowTitle</a>.</p>
<!-- @@@toggleViewAction -->
<!-- $$$toolButtonStyleChanged[overload1]$$$toolButtonStyleChangedQt::ToolButtonStyle -->
<h3 class="fn"><a name="toolButtonStyleChanged"></a><span class="type">void</span> QToolBar::<span class="name">toolButtonStyleChanged</span> ( <span class="type"><a href="qt.html#ToolButtonStyle-enum">Qt::ToolButtonStyle</a></span> <i>toolButtonStyle</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the tool button style is changed. The <i>toolButtonStyle</i> parameter holds the toolbar's new tool button style.</p>
<p><b>See also </b><a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a> and <a href="qmainwindow.html#toolButtonStyle-prop">QMainWindow::toolButtonStyle</a>.</p>
<!-- @@@toolButtonStyleChanged -->
<!-- $$$topLevelChanged[overload1]$$$topLevelChangedbool -->
<h3 class="fn"><a name="topLevelChanged"></a><span class="type">void</span> QToolBar::<span class="name">topLevelChanged</span> ( <span class="type">bool</span> <i>topLevel</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the <a href="qtoolbar.html#floating-prop">floating</a> property changes. The <i>topLevel</i> parameter is true if the toolbar is now floating; otherwise it is false.</p>
<p>This function was introduced in Qt 4.6.</p>
<p><b>See also </b><a href="qwidget.html#isWindow">isWindow</a>().</p>
<!-- @@@topLevelChanged -->
<!-- $$$visibilityChanged[overload1]$$$visibilityChangedbool -->
<h3 class="fn"><a name="visibilityChanged"></a><span class="type">void</span> QToolBar::<span class="name">visibilityChanged</span> ( <span class="type">bool</span> <i>visible</i> )<tt> [signal]</tt></h3>
<p>This signal is emitted when the toolbar becomes <i>visible</i> (or invisible). This happens when the widget is hidden or shown.</p>
<p>This function was introduced in Qt 4.7.</p>
<!-- @@@visibilityChanged -->
<!-- $$$widgetForAction[overload1]$$$widgetForActionQAction* -->
<h3 class="fn"><a name="widgetForAction"></a><span class="type"><a href="qwidget.html">QWidget</a></span> * QToolBar::<span class="name">widgetForAction</span> ( <span class="type"><a href="qaction.html">QAction</a></span> * <i>action</i> ) const</h3>
<p>Returns the widget associated with the specified <i>action</i>.</p>
<p>This function was introduced in Qt 4.2.</p>
<p><b>See also </b><a href="qtoolbar.html#addWidget">addWidget</a>().</p>
<!-- @@@widgetForAction -->
</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>