Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-updates > by-pkgid > 768f7d9f703884aa2562bf0a651086df > files > 3614

qtbase5-doc-5.9.4-1.1.mga6.noarch.rpm

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html lang="en">
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!-- qtoolbar.cpp -->
  <title>QToolBar Class | Qt Widgets 5.9</title>
  <link rel="stylesheet" type="text/css" href="style/offline-simple.css" />
  <script type="text/javascript">
    document.getElementsByTagName("link").item(0).setAttribute("href", "style/offline.css");
    // loading style sheet breaks anchors that were jumped to before
    // so force jumping to anchor again
    setTimeout(function() {
        var anchor = location.hash;
        // need to jump to different anchor first (e.g. none)
        location.hash = "#";
        setTimeout(function() {
            location.hash = anchor;
        }, 0);
    }, 0);
  </script>
</head>
<body>
<div class="header" id="qtdocheader">
  <div class="main">
    <div class="main-rounded">
      <div class="navigationbar">
        <table><tr>
<td >Qt 5.9</td><td ><a href="qtwidgets-index.html">Qt Widgets</a></td><td ><a href="qtwidgets-module.html">C++ Classes</a></td><td >QToolBar</td></tr></table><table class="buildversion"><tr>
<td id="buildversion" width="100%" align="right">Qt 5.9.4 Reference Documentation</td>
        </tr></table>
      </div>
    </div>
<div class="content">
<div class="line">
<div class="content mainContent">
<div class="sidebar">
<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="#reimplemented-protected-functions">Reimplemented Protected Functions</a></li>
<li class="level1"><a href="#details">Detailed Description</a></li>
</ul>
</div>
<div class="sidebar-content" id="sidebar-content"></div></div>
<h1 class="title">QToolBar Class</h1>
<!-- $$$QToolBar-brief -->
<p>The <a href="qtoolbar.html">QToolBar</a> class provides a movable panel that contains a set of controls. <a href="#details">More...</a></p>
<!-- @@@QToolBar -->
<div class="table"><table class="alignedsummary">
<tr><td class="memItemLeft rightAlign topAlign"> Header:</td><td class="memItemRight bottomAlign">   <span class="preprocessor">#include &lt;QToolBar&gt;</span>
</td></tr><tr><td class="memItemLeft rightAlign topAlign"> qmake:</td><td class="memItemRight bottomAlign"> QT += widgets</td></tr><tr><td class="memItemLeft rightAlign topAlign"> Inherits:</td><td class="memItemRight bottomAlign"> <a href="qwidget.html">QWidget</a></td></tr></table></div><ul>
<li><a href="qtoolbar-members.html">List of all members, including inherited members</a></li>
</ul>
<a name="properties"></a>
<h2 id="properties">Properties</h2>
<div class="table"><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></div>
<ul>
<li class="fn">59 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
<li class="fn">1 property inherited from <a href="../qtcore/qobject.html#properties">QObject</a></li>
</ul>
<a name="public-functions"></a>
<h2 id="public-functions">Public Functions</h2>
<div class="table"><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> = Q_NULLPTR)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> </td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#QToolBar-1">QToolBar</a></b>(QWidget *<i>parent</i> = Q_NULLPTR)</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-1">actionAt</a></b>(int <i>x</i>, int <i>y</i>) const</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction">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-1">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-2">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-3">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#addAction-4">addAction</a></b>(const QString &amp;<i>text</i>, const QObject *<i>receiver</i>, PointerToMemberFunction <i>method</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 QString &amp;<i>text</i>, Functor <i>functor</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction-6">addAction</a></b>(const QString &amp;<i>text</i>, const QObject *<i>context</i>, Functor <i>functor</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction-7">addAction</a></b>(const QIcon &amp;<i>icon</i>, const QString &amp;<i>text</i>, const QObject *<i>receiver</i>, PointerToMemberFunction <i>method</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction-8">addAction</a></b>(const QIcon &amp;<i>icon</i>, const QString &amp;<i>text</i>, Functor <i>functor</i>)</td></tr>
<tr><td class="memItemLeft rightAlign topAlign"> QAction *</td><td class="memItemRight bottomAlign"><b><a href="qtoolbar.html#addAction-9">addAction</a></b>(const QIcon &amp;<i>icon</i>, const QString &amp;<i>text</i>, const QObject *<i>context</i>, Functor <i>functor</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></div>
<ul>
<li class="fn">214 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
<li class="fn">32 public functions inherited from <a href="../qtcore/qobject.html#public-functions">QObject</a></li>
<li class="fn">14 public functions inherited from <a href="../qtgui/qpaintdevice.html#public-functions">QPaintDevice</a></li>
</ul>
<a name="public-slots"></a>
<h2 id="public-slots">Public Slots</h2>
<div class="table"><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></div>
<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="../qtcore/qobject.html#public-slots">QObject</a></li>
</ul>
<a name="signals"></a>
<h2 id="signals">Signals</h2>
<div class="table"><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></div>
<ul>
<li class="fn">3 signals inherited from <a href="qwidget.html#signals">QWidget</a></li>
<li class="fn">2 signals inherited from <a href="../qtcore/qobject.html#signals">QObject</a></li>
</ul>
<a name="reimplemented-protected-functions"></a>
<h2 id="reimplemented-protected-functions">Reimplemented Protected Functions</h2>
<div class="table"><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 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>
</table></div>
<ul>
<li class="fn">35 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="../qtgui/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
</ul>
<h3>Additional Inherited Members</h3>
<ul>
<li class="fn">1 public variable inherited from <a href="../qtcore/qobject.html#public-variables">QObject</a></li>
<li class="fn">5 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
<li class="fn">10 static public members inherited from <a href="../qtcore/qobject.html#static-public-members">QObject</a></li>
<li class="fn">35 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
<li class="fn">9 protected functions inherited from <a href="../qtcore/qobject.html#protected-functions">QObject</a></li>
<li class="fn">1 protected function inherited from <a href="../qtgui/qpaintdevice.html#protected-functions">QPaintDevice</a></li>
<li class="fn">1 protected slot inherited from <a href="qwidget.html#protected-slots">QWidget</a></li>
<li class="fn">2 protected variables inherited from <a href="../qtcore/qobject.html#protected-variables">QObject</a></li>
<li class="fn">1 protected type inherited from <a href="../qtgui/qpaintdevice.html#protected-variables">QPaintDevice</a></li>
</ul>
<a name="details"></a>
<!-- $$$QToolBar-description -->
<div class="descr">
<h2 id="details">Detailed Description</h2>
<p>The <a href="qtoolbar.html">QToolBar</a> 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 between toolbar areas; see <a href="qtoolbar.html#movable-prop">setMovable</a>(), <a href="qtoolbar.html#movable-prop">isMovable</a>(), <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 do not currently fit in the toolbar.</p>
<p>When a <a href="qtoolbar.html">QToolBar</a> 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="qtwidgets-mainwindows-application-example.html">Application Example</a>.</p>
<!-- @@@QToolBar -->
<div class="prop">
<h2>Property Documentation</h2>
<!-- $$$allowedAreas-prop$$$allowedAreas$$$setAllowedAreasQt::ToolBarAreas$$$allowedAreasChangedQt::ToolBarAreas -->
<h3 class="fn" id="allowedAreas-prop"><a name="allowedAreas-prop"></a><span class="name">allowedAreas</span> : <span class="type"><a href="../qtcore/qt.html#ToolBarArea-enum">Qt::ToolBarAreas</a></span></h3>
<p>areas where the toolbar may be placed</p>
<p>The default is <a href="../qtcore/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>
<div class="table"><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></div>
<p><b>Notifier signal:</b></p>
<div class="table"><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></div>
<p><b>See also </b><a href="qtoolbar.html#movable-prop">movable</a>.</p>
<!-- @@@allowedAreas -->
<!-- $$$floatable-prop$$$isFloatable$$$setFloatablebool -->
<h3 class="fn" id="floatable-prop"><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>
<div class="table"><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></div>
<!-- @@@floatable -->
<!-- $$$floating-prop$$$isFloating -->
<h3 class="fn" id="floating-prop"><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 <code>true</code>.</p>
<p><b>Access functions:</b></p>
<div class="table"><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></div>
<p><b>See also </b><a href="qwidget.html#isWindow">QWidget::isWindow</a>().</p>
<!-- @@@floating -->
<!-- $$$iconSize-prop$$$iconSize$$$setIconSizeconstQSize&$$$iconSizeChangedconstQSize& -->
<h3 class="fn" id="iconSize-prop"><a name="iconSize-prop"></a><span class="name">iconSize</span> : <span class="type"><a href="../qtcore/qsize.html">QSize</a></span></h3>
<p>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>
<div class="table"><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></div>
<p><b>Notifier signal:</b></p>
<div class="table"><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></div>
<!-- @@@iconSize -->
<!-- $$$movable-prop$$$isMovable$$$setMovablebool$$$movableChangedbool -->
<h3 class="fn" id="movable-prop"><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 <code>true</code>.</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>
<div class="table"><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></div>
<p><b>Notifier signal:</b></p>
<div class="table"><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></div>
<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" id="orientation-prop"><a name="orientation-prop"></a><span class="name">orientation</span> : <span class="type"><a href="../qtcore/qt.html#Orientation-enum">Qt::Orientation</a></span></h3>
<p>orientation of the toolbar</p>
<p>The default is <a href="../qtcore/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="../qtcore/qt.html#ToolBarArea-enum">Qt::ToolBarArea</a>.</p>
<p><b>Access functions:</b></p>
<div class="table"><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></div>
<p><b>Notifier signal:</b></p>
<div class="table"><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></div>
<!-- @@@orientation -->
<!-- $$$toolButtonStyle-prop$$$toolButtonStyle$$$setToolButtonStyleQt::ToolButtonStyle$$$toolButtonStyleChangedQt::ToolButtonStyle -->
<h3 class="fn" id="toolButtonStyle-prop"><a name="toolButtonStyle-prop"></a><span class="name">toolButtonStyle</span> : <span class="type"><a href="../qtcore/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>To have the style of toolbuttons follow the system settings, set this property to <a href="../qtcore/qt.html#ToolButtonStyle-enum">Qt::ToolButtonFollowStyle</a>. On Unix, the user settings from the desktop environment will be used. On other platforms, <a href="../qtcore/qt.html#ToolButtonStyle-enum">Qt::ToolButtonFollowStyle</a> means icon only.</p>
<p>The default is <a href="../qtcore/qt.html#ToolButtonStyle-enum">Qt::ToolButtonIconOnly</a>.</p>
<p><b>Access functions:</b></p>
<div class="table"><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></div>
<p><b>Notifier signal:</b></p>
<div class="table"><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></div>
<!-- @@@toolButtonStyle -->
</div>
<div class="func">
<h2>Member Function Documentation</h2>
<!-- $$$QToolBar[overload1]$$$QToolBarconstQString&QWidget* -->
<h3 class="fn" id="QToolBar"><a name="QToolBar"></a>QToolBar::<span class="name">QToolBar</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>title</i>, <span class="type"><a href="qwidget.html#QWidget">QWidget</a></span> *<i>parent</i> = Q_NULLPTR)</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" id="QToolBar-1"><a name="QToolBar-1"></a>QToolBar::<span class="name">QToolBar</span>(<span class="type"><a href="qwidget.html#QWidget">QWidget</a></span> *<i>parent</i> = Q_NULLPTR)</h3>
<p>Constructs a <a href="qtoolbar.html">QToolBar</a> with the given <i>parent</i>.</p>
<!-- @@@QToolBar -->
<!-- $$$~QToolBar[overload1]$$$~QToolBar -->
<h3 class="fn" id="dtor.QToolBar"><a name="dtor.QToolBar"></a>QToolBar::<span class="name">~QToolBar</span>()</h3>
<p>Destroys the toolbar.</p>
<!-- @@@~QToolBar -->
<!-- $$$actionAt[overload1]$$$actionAtconstQPoint& -->
<h3 class="fn" id="actionAt"><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="../qtcore/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" id="actionAt-1"><a name="actionAt-1"></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" id="actionEvent"><a name="actionEvent"></a><code>[virtual protected] </code><span class="type">void</span> QToolBar::<span class="name">actionEvent</span>(<span class="type"><a href="../qtgui/qactionevent.html">QActionEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#actionEvent">QWidget::actionEvent</a>().</p>
<!-- @@@actionEvent -->
<!-- $$$actionTriggered[overload1]$$$actionTriggeredQAction* -->
<h3 class="fn" id="actionTriggered"><a name="actionTriggered"></a><code>[signal] </code><span class="type">void</span> QToolBar::<span class="name">actionTriggered</span>(<span class="type"><a href="qaction.html">QAction</a></span> *<i>action</i>)</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 toolbar. The parameter holds the triggered <i>action</i>.</p>
<!-- @@@actionTriggered -->
<!-- $$$addAction[overload1]$$$addActionconstQString& -->
<h3 class="fn" id="addAction"><a name="addAction"></a><span class="type"><a href="qaction.html">QAction</a></span> *QToolBar::<span class="name">addAction</span>(const <span class="type"><a href="../qtcore/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" id="addAction-1"><a name="addAction-1"></a><span class="type"><a href="qaction.html">QAction</a></span> *QToolBar::<span class="name">addAction</span>(const <span class="type"><a href="../qtgui/qicon.html">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="../qtcore/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" id="addAction-2"><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="../qtcore/qstring.html">QString</a></span> &amp;<i>text</i>, const <span class="type"><a href="../qtcore/qobject.html#QObject">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" id="addAction-3"><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="../qtgui/qicon.html">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>text</i>, const <span class="type"><a href="../qtcore/qobject.html#QObject">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>icon</i> and <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$$$addActionconstQString&constQObject*PointerToMemberFunction -->
<h3 class="fn" id="addAction-4"><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="../qtcore/qstring.html">QString</a></span> &amp;<i>text</i>, const <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>receiver</i>, <span class="type">PointerToMemberFunction</span> <i>method</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 the <i>method</i> of the <i>receiver</i>.</p>
<p>This function was introduced in  Qt 5.6.</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQString&Functor -->
<h3 class="fn" id="addAction-5"><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="../qtcore/qstring.html">QString</a></span> &amp;<i>text</i>, <span class="type">Functor</span> <i>functor</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 the <i>functor</i>.</p>
<p>This function was introduced in  Qt 5.6.</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQString&constQObject*Functor -->
<h3 class="fn" id="addAction-6"><a name="addAction-6"></a><span class="type"><a href="qaction.html">QAction</a></span> *QToolBar::<span class="name">addAction</span>(const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>text</i>, const <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>context</i>, <span class="type">Functor</span> <i>functor</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 the <i>functor</i>.</p>
<p>If <i>context</i> is destroyed, the functor will not be called.</p>
<p>This function was introduced in  Qt 5.6.</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQIcon&constQString&constQObject*PointerToMemberFunction -->
<h3 class="fn" id="addAction-7"><a name="addAction-7"></a><span class="type"><a href="qaction.html">QAction</a></span> *QToolBar::<span class="name">addAction</span>(const <span class="type"><a href="../qtgui/qicon.html">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>text</i>, const <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>receiver</i>, <span class="type">PointerToMemberFunction</span> <i>method</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. The action's <a href="qaction.html#triggered">triggered()</a> signal is connected to the <i>method</i> of the <i>receiver</i>.</p>
<p>This function was introduced in  Qt 5.6.</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQIcon&constQString&Functor -->
<h3 class="fn" id="addAction-8"><a name="addAction-8"></a><span class="type"><a href="qaction.html">QAction</a></span> *QToolBar::<span class="name">addAction</span>(const <span class="type"><a href="../qtgui/qicon.html">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>text</i>, <span class="type">Functor</span> <i>functor</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. The action's <a href="qaction.html#triggered">triggered()</a> signal is connected to the <i>functor</i>.</p>
<p>This function was introduced in  Qt 5.6.</p>
<!-- @@@addAction -->
<!-- $$$addAction$$$addActionconstQIcon&constQString&constQObject*Functor -->
<h3 class="fn" id="addAction-9"><a name="addAction-9"></a><span class="type"><a href="qaction.html">QAction</a></span> *QToolBar::<span class="name">addAction</span>(const <span class="type"><a href="../qtgui/qicon.html">QIcon</a></span> &amp;<i>icon</i>, const <span class="type"><a href="../qtcore/qstring.html">QString</a></span> &amp;<i>text</i>, const <span class="type"><a href="../qtcore/qobject.html#QObject">QObject</a></span> *<i>context</i>, <span class="type">Functor</span> <i>functor</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. The action's <a href="qaction.html#triggered">triggered()</a> signal is connected to the <i>functor</i>.</p>
<p>If <i>context</i> is destroyed, the functor will not be called.</p>
<p>This function was introduced in  Qt 5.6.</p>
<!-- @@@addAction -->
<!-- $$$addSeparator[overload1]$$$addSeparator -->
<h3 class="fn" id="addSeparator"><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" id="addWidget"><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">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 toolbar's <a href="../qtcore/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 -->
<h3 class="fn" id="allowedAreasChanged"><a name="allowedAreasChanged"></a><code>[signal] </code><span class="type">void</span> QToolBar::<span class="name">allowedAreasChanged</span>(<span class="type"><a href="../qtcore/qt.html#ToolBarArea-enum">Qt::ToolBarAreas</a></span> <i>allowedAreas</i>)</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>Note:</b> Notifier signal for property <a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a>. </p><p><b>See also </b><a href="qtoolbar.html#allowedAreas-prop">allowedAreas</a>.</p>
<!-- @@@allowedAreasChanged -->
<!-- $$$changeEvent[overload1]$$$changeEventQEvent* -->
<h3 class="fn" id="changeEvent"><a name="changeEvent"></a><code>[virtual protected] </code><span class="type">void</span> QToolBar::<span class="name">changeEvent</span>(<span class="type"><a href="../qtcore/qevent.html">QEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#changeEvent">QWidget::changeEvent</a>().</p>
<!-- @@@changeEvent -->
<!-- $$$clear[overload1]$$$clear -->
<h3 class="fn" id="clear"><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" id="event"><a name="event"></a><code>[virtual protected] </code><span class="type">bool</span> QToolBar::<span class="name">event</span>(<span class="type"><a href="../qtcore/qevent.html">QEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="../qtcore/qobject.html#event">QObject::event</a>().</p>
<!-- @@@event -->
<!-- $$$iconSizeChanged -->
<h3 class="fn" id="iconSizeChanged"><a name="iconSizeChanged"></a><code>[signal] </code><span class="type">void</span> QToolBar::<span class="name">iconSizeChanged</span>(const <span class="type"><a href="../qtcore/qsize.html">QSize</a></span> &amp;<i>iconSize</i>)</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>Note:</b> Notifier signal for property <a href="qtoolbar.html#iconSize-prop">iconSize</a>. </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" id="insertSeparator"><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" id="insertWidget"><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">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" id="isAreaAllowed"><a name="isAreaAllowed"></a><span class="type">bool</span> QToolBar::<span class="name">isAreaAllowed</span>(<span class="type"><a href="../qtcore/qt.html#ToolBarArea-enum">Qt::ToolBarArea</a></span> <i>area</i>) const</h3>
<p>Returns <code>true</code> if this toolbar is dockable in the given <i>area</i>; otherwise returns <code>false</code>.</p>
<!-- @@@isAreaAllowed -->
<!-- $$$movableChanged -->
<h3 class="fn" id="movableChanged"><a name="movableChanged"></a><code>[signal] </code><span class="type">void</span> QToolBar::<span class="name">movableChanged</span>(<span class="type">bool</span> <i>movable</i>)</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>Note:</b> Notifier signal for property <a href="qtoolbar.html#movable-prop">movable</a>. </p><p><b>See also </b><a href="qtoolbar.html#movable-prop">movable</a>.</p>
<!-- @@@movableChanged -->
<!-- $$$orientationChanged -->
<h3 class="fn" id="orientationChanged"><a name="orientationChanged"></a><code>[signal] </code><span class="type">void</span> QToolBar::<span class="name">orientationChanged</span>(<span class="type"><a href="../qtcore/qt.html#Orientation-enum">Qt::Orientation</a></span> <i>orientation</i>)</h3>
<p>This signal is emitted when the orientation of the toolbar changes. The <i>orientation</i> parameter holds the toolbar's new orientation.</p>
<p><b>Note:</b> Notifier signal for property <a href="qtoolbar.html#orientation-prop">orientation</a>. </p><p><b>See also </b><a href="qtoolbar.html#orientation-prop">orientation</a>.</p>
<!-- @@@orientationChanged -->
<!-- $$$paintEvent[overload1]$$$paintEventQPaintEvent* -->
<h3 class="fn" id="paintEvent"><a name="paintEvent"></a><code>[virtual protected] </code><span class="type">void</span> QToolBar::<span class="name">paintEvent</span>(<span class="type"><a href="../qtgui/qpaintevent.html">QPaintEvent</a></span> *<i>event</i>)</h3>
<p>Reimplemented from <a href="qwidget.html#paintEvent">QWidget::paintEvent</a>().</p>
<!-- @@@paintEvent -->
<!-- $$$toggleViewAction[overload1]$$$toggleViewAction -->
<h3 class="fn" id="toggleViewAction"><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 -->
<h3 class="fn" id="toolButtonStyleChanged"><a name="toolButtonStyleChanged"></a><code>[signal] </code><span class="type">void</span> QToolBar::<span class="name">toolButtonStyleChanged</span>(<span class="type"><a href="../qtcore/qt.html#ToolButtonStyle-enum">Qt::ToolButtonStyle</a></span> <i>toolButtonStyle</i>)</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>Note:</b> Notifier signal for property <a href="qtoolbar.html#toolButtonStyle-prop">toolButtonStyle</a>. </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" id="topLevelChanged"><a name="topLevelChanged"></a><code>[signal] </code><span class="type">void</span> QToolBar::<span class="name">topLevelChanged</span>(<span class="type">bool</span> <i>topLevel</i>)</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" id="visibilityChanged"><a name="visibilityChanged"></a><code>[signal] </code><span class="type">void</span> QToolBar::<span class="name">visibilityChanged</span>(<span class="type">bool</span> <i>visible</i>)</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" id="widgetForAction"><a name="widgetForAction"></a><span class="type"><a href="qwidget.html#QWidget">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>
</div>
<div class="footer">
   <p>
   <acronym title="Copyright">&copy;</acronym> 2017 The Qt Company Ltd.
   Documentation contributions included herein are the copyrights of
   their respective owners.<br>    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.<br>    Qt and respective logos are trademarks of The Qt Company Ltd.     in Finland and/or other countries worldwide. All other trademarks are property
   of their respective owners. </p>
</div>
</body>
</html>