<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- /tmp/qt-3.0-reggie-28534/qt-x11-free-3.0.2/src/widgets/qtoolbutton.cpp:74 --> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title>QToolButton Class</title> <style type="text/css"><!-- h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; } a:link { color: #004faf; text-decoration: none } a:visited { color: #672967; text-decoration: none } body { background: #ffffff; color: black; } --></style> </head> <body> <table border="0" cellpadding="0" cellspacing="0" width="100%"> <tr bgcolor="#E5E5E5"> <td valign=center> <a href="index.html"> <font color="#004faf">Home</font></a> | <a href="classes.html"> <font color="#004faf">All Classes</font></a> | <a href="mainclasses.html"> <font color="#004faf">Main Classes</font></a> | <a href="annotated.html"> <font color="#004faf">Annotated</font></a> | <a href="groups.html"> <font color="#004faf">Grouped Classes</font></a> | <a href="functions.html"> <font color="#004faf">Functions</font></a> </td> <td align="right" valign="center"><img src="logo32.png" align="right" width="64" height="32" border="0"></td></tr></table><h1 align=center>QToolButton Class Reference</h1> <p>The QToolButton class provides a quick-access button to commands or options, usually used inside a QToolBar. <a href="#details">More...</a> <p><tt>#include <<a href="qtoolbutton-h.html">qtoolbutton.h</a>></tt> <p>Inherits <a href="qbutton.html">QButton</a>. <p><a href="qtoolbutton-members.html">List of all member functions.</a> <h2>Public Members</h2> <ul> <li><div class=fn><a href="#QToolButton"><b>QToolButton</b></a> ( QWidget * parent, const char * name = 0 )</div></li> <li><div class=fn><a href="#QToolButton-2"><b>QToolButton</b></a> ( const QIconSet & iconSet, const QString & textLabel, const QString & grouptext, QObject * receiver, const char * slot, QToolBar * parent, const char * name = 0 )</div></li> <li><div class=fn><a href="#QToolButton-3"><b>QToolButton</b></a> ( ArrowType type, QWidget * parent, const char * name = 0 )</div></li> <li><div class=fn><a href="#~QToolButton"><b>~QToolButton</b></a> ()</div></li> <li><div class=fn>void setOnIconSet ( const QIconSet & ) <em>(obsolete)</em></div></li> <li><div class=fn>void setOffIconSet ( const QIconSet & ) <em>(obsolete)</em></div></li> <li><div class=fn>void setIconSet ( const QIconSet & set, bool on ) <em>(obsolete)</em></div></li> <li><div class=fn>QIconSet onIconSet () const <em>(obsolete)</em></div></li> <li><div class=fn>QIconSet offIconSet () const <em>(obsolete)</em></div></li> <li><div class=fn>QIconSet iconSet ( bool on ) const <em>(obsolete)</em></div></li> <li><div class=fn>virtual void <a href="#setIconSet"><b>setIconSet</b></a> ( const QIconSet & )</div></li> <li><div class=fn>QIconSet <a href="#iconSet"><b>iconSet</b></a> () const</div></li> <li><div class=fn>bool <a href="#usesBigPixmap"><b>usesBigPixmap</b></a> () const</div></li> <li><div class=fn>bool <a href="#usesTextLabel"><b>usesTextLabel</b></a> () const</div></li> <li><div class=fn>QString <a href="#textLabel"><b>textLabel</b></a> () const</div></li> <li><div class=fn>void <a href="#setPopup"><b>setPopup</b></a> ( QPopupMenu * popup )</div></li> <li><div class=fn>QPopupMenu * <a href="#popup"><b>popup</b></a> () const</div></li> <li><div class=fn>void <a href="#setPopupDelay"><b>setPopupDelay</b></a> ( int delay )</div></li> <li><div class=fn>int <a href="#popupDelay"><b>popupDelay</b></a> () const</div></li> <li><div class=fn>void <a href="#openPopup"><b>openPopup</b></a> ()</div></li> <li><div class=fn>void <a href="#setAutoRaise"><b>setAutoRaise</b></a> ( bool enable )</div></li> <li><div class=fn>bool <a href="#autoRaise"><b>autoRaise</b></a> () const</div></li> </ul> <h2>Public Slots</h2> <ul> <li><div class=fn>virtual void <a href="#setUsesBigPixmap"><b>setUsesBigPixmap</b></a> ( bool enable )</div></li> <li><div class=fn>virtual void <a href="#setUsesTextLabel"><b>setUsesTextLabel</b></a> ( bool enable )</div></li> <li><div class=fn>virtual void <a href="#setTextLabel-2"><b>setTextLabel</b></a> ( const QString & newLabel, bool tipToo )</div></li> <li><div class=fn>virtual void <a href="#setToggleButton"><b>setToggleButton</b></a> ( bool enable )</div></li> <li><div class=fn>virtual void <a href="#setOn"><b>setOn</b></a> ( bool enable )</div></li> <li><div class=fn>void <a href="#toggle"><b>toggle</b></a> ()</div></li> <li><div class=fn>void <a href="#setTextLabel"><b>setTextLabel</b></a> ( const QString & )</div></li> </ul> <h2>Properties</h2> <ul> <li><div class=fn>bool <a href="#autoRaise-prop"><b>autoRaise</b></a> - whether auto-raising is enabled</div></li> <li><div class=fn>QIconSet <a href="#iconSet-prop"><b>iconSet</b></a> - the icon set providing the icon shown on the button</div></li> <li><div class=fn>QIconSet offIconSet - the icon set that is used when the button is in an "off" state <em>(obsolete)</em></div></li> <li><div class=fn>bool <a href="#on-prop"><b>on</b></a> - whether this tool button is on</div></li> <li><div class=fn>QIconSet onIconSet - the icon set that is used when the button is in an "on" state <em>(obsolete)</em></div></li> <li><div class=fn>int <a href="#popupDelay-prop"><b>popupDelay</b></a> - the time delay between pressing the button and the appearance of the associated popup menu in milliseconds</div></li> <li><div class=fn>QString <a href="#textLabel-prop"><b>textLabel</b></a> - the label of this button</div></li> <li><div class=fn>bool <a href="#toggleButton-prop"><b>toggleButton</b></a> - whether this tool button is a toggle button</div></li> <li><div class=fn>bool <a href="#usesBigPixmap-prop"><b>usesBigPixmap</b></a> - whether this toolbutton uses big pixmaps</div></li> <li><div class=fn>bool <a href="#usesTextLabel-prop"><b>usesTextLabel</b></a> - whether the toolbutton displays a text label below the button pixmap</div></li> </ul> <h2>Protected Members</h2> <ul> <li><div class=fn>bool <a href="#uses3D"><b>uses3D</b></a> () const</div></li> </ul> <hr><a name="details"></a><h2>Detailed Description</h2> <p> The QToolButton class provides a quick-access button to commands or options, usually used inside a <a href="qtoolbar.html">QToolBar</a>. <p> <p> A tool button is a special button that provides quick-access to specific commands or options. As opposed to a normal command button, a tool button usually doesn't normally show a text label, but an icon. Its classic usage is to select tools, for example the "pen" tool in a drawing program. This would be implemented with a QToolButton as toggle button (see <a href="#setToggleButton">setToggleButton</a>() ). <p> QToolButton supports auto-raising. In auto-raise mode, the button draws a 3D frame only when the mouse points at it. The feature is automatically turned on when a button is used inside a QToolBar. Change it with <a href="#setAutoRaise">setAutoRaise</a>(). <p> A tool button's icon is set as <a href="qiconset.html">QIconSet</a>. This makes it possible to specify different pixmaps for the disabled and active state. The disabled pixmap is used when the button's functionality is not available. The active pixmap is displayed when the button is auto-raised because the user is pointing at it. <p> The button's look and dimension is adjustable with <a href="#setUsesBigPixmap">setUsesBigPixmap</a>() and <a href="#setUsesTextLabel">setUsesTextLabel</a>(). When used inside a <a href="qtoolbar.html">QToolBar</a>, the button automatically adjusts to <a href="qmainwindow.html">QMainWindow</a>'s settings (see <a href="qmainwindow.html#setUsesTextLabel">QMainWindow::setUsesTextLabel</a>() and <a href="qmainwindow.html#setUsesBigPixmaps">QMainWindow::setUsesBigPixmaps</a>()). <p> A tool button can offer additional choices in a popup menu. The feature is sometimes used with the "Back" button in a web browser. After pressing the button down for awhile, a menu pops up showing all possible pages to browse back. With QToolButton you can set a popup menu using <a href="#setPopup">setPopup</a>(). The default delay is 600ms; you may adjust it with <a href="#setPopupDelay">setPopupDelay</a>(). <p> <center><img src="qdockwindow.png" alt="Toolbar with Toolbuttons"></center> <blockquote><p align="center"><em> A floating QToolbar with QToolbuttons </em></p> </blockquote><p> <p>See also <a href="qpushbutton.html">QPushButton</a>, <a href="qtoolbar.html">QToolBar</a>, <a href="qmainwindow.html">QMainWindow</a>, <a href="guibooks.html#fowler">GUI Design Handbook: Push Button</a> and <a href="basic.html">Basic Widgets</a>. <hr><h2>Member Function Documentation</h2> <h3 class=fn><a name="QToolButton"></a>QToolButton::QToolButton ( <a href="qwidget.html">QWidget</a> * parent, const char * name = 0 ) </h3> Constructs an empty tool button with parent <em>parent</em> and name <em>name</em>. <h3 class=fn><a name="QToolButton-2"></a>QToolButton::QToolButton ( const <a href="qiconset.html">QIconSet</a> & iconSet, const <a href="qstring.html">QString</a> & textLabel, const <a href="qstring.html">QString</a> & grouptext, <a href="qobject.html">QObject</a> * receiver, const char * slot, <a href="qtoolbar.html">QToolBar</a> * parent, const char * name = 0 ) </h3> Constructs a tool button that is a child of <em>parent</em> (which must be a <a href="qtoolbar.html">QToolBar</a>) and named <em>name</em>. <p> The tool button will display <em>iconSet</em>, with its text label and tool tip set to <em>textLabel</em> and its status bar message set to <em>grouptext</em>. It will be connected to the <em>slot</em> in object <em>receiver</em>. <h3 class=fn><a name="QToolButton-3"></a>QToolButton::QToolButton ( <a href="qt.html#ArrowType-enum">ArrowType</a> type, <a href="qwidget.html">QWidget</a> * parent, const char * name = 0 ) </h3> Constructs a tool button as an arrow button. The ArrowType <em>type</em> defines the arrow direction. Possible values are LeftArrow, RightArrow, UpArrow and DownArrow. <p> An arrow button has auto-repeat turned on by default. <p> The <em>parent</em> and <em>name</em> arguments are sent to the <a href="qwidget.html">QWidget</a> constructor. <h3 class=fn><a name="~QToolButton"></a>QToolButton::~QToolButton () </h3> Destroys the object and frees any allocated resources. <h3 class=fn>bool <a name="autoRaise"></a>QToolButton::autoRaise () const </h3><p>Returns TRUE if auto-raising is enabled; otherwise returns FALSE. See the <a href="qtoolbutton.html#autoRaise-prop">"autoRaise"</a> property for details. <h3 class=fn><a href="qiconset.html">QIconSet</a> <a name="iconSet"></a>QToolButton::iconSet () const </h3><p>Returns the icon set providing the icon shown on the button. See the <a href="qtoolbutton.html#iconSet-prop">"iconSet"</a> property for details. <h3 class=fn><a href="qiconset.html">QIconSet</a> <a name="iconSet-2"></a>QToolButton::iconSet ( bool on ) const </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Since Qt 3.0, <a href="qiconset.html">QIconSet</a> contains both the On and Off icons. <p> For ease of porting, this function ignores the <em>on</em> parameter and returns the <a href="#iconSet-prop">iconSet</a> property. If you relied on the <em>on</em> parameter, you probably want to update your code to use the QIconSet On/Off mechanism. <h3 class=fn><a href="qiconset.html">QIconSet</a> <a name="offIconSet"></a>QToolButton::offIconSet () const </h3><p>Returns the icon set that is used when the button is in an "off" state. See the <a href="qtoolbutton.html#offIconSet-prop">"offIconSet"</a> property for details. <h3 class=fn><a href="qiconset.html">QIconSet</a> <a name="onIconSet"></a>QToolButton::onIconSet () const </h3><p>Returns the icon set that is used when the button is in an "on" state. See the <a href="qtoolbutton.html#onIconSet-prop">"onIconSet"</a> property for details. <h3 class=fn>void <a name="openPopup"></a>QToolButton::openPopup () </h3> Opens (pops up) the associated popup menu. If there is no such menu, this function does nothing. This function does not return until the popup menu has been closed by the user. <h3 class=fn><a href="qpopupmenu.html">QPopupMenu</a> * <a name="popup"></a>QToolButton::popup () const </h3> Returns the associated popup menu, or 0 if no popup menu has been defined. <p> <p>See also <a href="#setPopup">setPopup</a>(). <h3 class=fn>int <a name="popupDelay"></a>QToolButton::popupDelay () const </h3><p>Returns the time delay between pressing the button and the appearance of the associated popup menu in milliseconds. See the <a href="qtoolbutton.html#popupDelay-prop">"popupDelay"</a> property for details. <h3 class=fn>void <a name="setAutoRaise"></a>QToolButton::setAutoRaise ( bool enable ) </h3><p>Sets whether auto-raising is enabled to <em>enable</em>. See the <a href="qtoolbutton.html#autoRaise-prop">"autoRaise"</a> property for details. <h3 class=fn>void <a name="setIconSet"></a>QToolButton::setIconSet ( const <a href="qiconset.html">QIconSet</a> & )<tt> [virtual]</tt> </h3><p>Sets the icon set providing the icon shown on the button. See the <a href="qtoolbutton.html#iconSet-prop">"iconSet"</a> property for details. <h3 class=fn>void <a name="setIconSet-2"></a>QToolButton::setIconSet ( const <a href="qiconset.html">QIconSet</a> & set, bool on ) </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> <b>This function is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Since Qt 3.0, <a href="qiconset.html">QIconSet</a> contains both the On and Off icons. <p> For ease of porting, this function ignores the <em>on</em> parameter and sets the <a href="#iconSet-prop">iconSet</a> property. If you relied on the <em>on</em> parameter, you probably want to update your code to use the QIconSet On/Off mechanism. <p> <p>See also <a href="#iconSet-prop">iconSet</a> and <a href="qiconset.html#State-enum">QIconSet::State</a>. <h3 class=fn>void <a name="setOffIconSet"></a>QToolButton::setOffIconSet ( const <a href="qiconset.html">QIconSet</a> & ) </h3><p>Sets the icon set that is used when the button is in an "off" state. See the <a href="qtoolbutton.html#offIconSet-prop">"offIconSet"</a> property for details. <h3 class=fn>void <a name="setOn"></a>QToolButton::setOn ( bool enable )<tt> [virtual slot]</tt> </h3><p>Sets whether this tool button is on to <em>enable</em>. See the <a href="qtoolbutton.html#on-prop">"on"</a> property for details. <h3 class=fn>void <a name="setOnIconSet"></a>QToolButton::setOnIconSet ( const <a href="qiconset.html">QIconSet</a> & ) </h3><p>Sets the icon set that is used when the button is in an "on" state. See the <a href="qtoolbutton.html#onIconSet-prop">"onIconSet"</a> property for details. <h3 class=fn>void <a name="setPopup"></a>QToolButton::setPopup ( <a href="qpopupmenu.html">QPopupMenu</a> * popup ) </h3> Associates the popup menu <em>popup</em> with this tool button. <p> The popup will be shown each time the tool button has been pressed down for a certain amount of time. A typical application example is the "back" button in some web browsers's tool bars. If the user clicks it, the browser simply browses back to the previous page. If the user holds the button down for a while, the tool button shows a menu containing the current history list. <p> Ownership of the popup menu is not transferred to the tool button. <p> <p>See also <a href="#popup">popup</a>(). <h3 class=fn>void <a name="setPopupDelay"></a>QToolButton::setPopupDelay ( int delay ) </h3><p>Sets the time delay between pressing the button and the appearance of the associated popup menu in milliseconds to <em>delay</em>. See the <a href="qtoolbutton.html#popupDelay-prop">"popupDelay"</a> property for details. <h3 class=fn>void <a name="setTextLabel"></a>QToolButton::setTextLabel ( const <a href="qstring.html">QString</a> & )<tt> [slot]</tt> </h3><p>Sets the label of this button. See the <a href="qtoolbutton.html#textLabel-prop">"textLabel"</a> property for details. <h3 class=fn>void <a name="setTextLabel-2"></a>QToolButton::setTextLabel ( const <a href="qstring.html">QString</a> & newLabel, bool tipToo )<tt> [virtual slot]</tt> </h3> This is an overloaded member function, provided for convenience. It behaves essentially like the above function. <p> Sets the label of this button to <em>newLabel</em> and automatically sets it as tool tip too if <em>tipToo</em> is TRUE. <h3 class=fn>void <a name="setToggleButton"></a>QToolButton::setToggleButton ( bool enable )<tt> [virtual slot]</tt> </h3><p>Sets whether this tool button is a toggle button to <em>enable</em>. See the <a href="qtoolbutton.html#toggleButton-prop">"toggleButton"</a> property for details. <h3 class=fn>void <a name="setUsesBigPixmap"></a>QToolButton::setUsesBigPixmap ( bool enable )<tt> [virtual slot]</tt> </h3><p>Sets whether this toolbutton uses big pixmaps to <em>enable</em>. See the <a href="qtoolbutton.html#usesBigPixmap-prop">"usesBigPixmap"</a> property for details. <h3 class=fn>void <a name="setUsesTextLabel"></a>QToolButton::setUsesTextLabel ( bool enable )<tt> [virtual slot]</tt> </h3><p>Sets whether the toolbutton displays a text label below the button pixmap to <em>enable</em>. See the <a href="qtoolbutton.html#usesTextLabel-prop">"usesTextLabel"</a> property for details. <h3 class=fn><a href="qstring.html">QString</a> <a name="textLabel"></a>QToolButton::textLabel () const </h3><p>Returns the label of this button. See the <a href="qtoolbutton.html#textLabel-prop">"textLabel"</a> property for details. <h3 class=fn>void <a name="toggle"></a>QToolButton::toggle ()<tt> [slot]</tt> </h3> Toggles the state of this tool button. <p> This function has no effect on <a href="qbutton.html#isToggleButton">non-toggling buttons.</a> <p> <p>See also <a href="#toggleButton-prop">toggleButton</a> and <a href="qbutton.html#toggled">toggled</a>(). <h3 class=fn>bool <a name="uses3D"></a>QToolButton::uses3D () const<tt> [protected]</tt> </h3> Returns TRUE if this button should be drawn using raised edges; otherwise returns FALSE. <p>See also <a href="qbutton.html#drawButton">drawButton</a>(). <h3 class=fn>bool <a name="usesBigPixmap"></a>QToolButton::usesBigPixmap () const </h3><p>Returns TRUE if this toolbutton uses big pixmaps; otherwise returns FALSE. See the <a href="qtoolbutton.html#usesBigPixmap-prop">"usesBigPixmap"</a> property for details. <h3 class=fn>bool <a name="usesTextLabel"></a>QToolButton::usesTextLabel () const </h3><p>Returns TRUE if the toolbutton displays a text label below the button pixmap; otherwise returns FALSE. See the <a href="qtoolbutton.html#usesTextLabel-prop">"usesTextLabel"</a> property for details. <hr><h2>Property Documentation</h2> <h3 class=fn>bool <a name="autoRaise-prop"></a>autoRaise</h3> <p>This property holds whether auto-raising is enabled. <p>The default is disabled (i.e. FALSE). <p>Set this property's value with <a href="#setAutoRaise">setAutoRaise</a>() and get this property's value with <a href="#autoRaise">autoRaise</a>(). <h3 class=fn><a href="qiconset.html">QIconSet</a> <a name="iconSet-prop"></a>iconSet</h3> <p>This property holds the icon set providing the icon shown on the button. <p>Setting this property sets <a href="qbutton.html#pixmap-prop">QToolButton::pixmap</a> to a null pixmap. There is no default iconset. <p> <p>See also <a href="qbutton.html#pixmap-prop">pixmap</a>, <a href="#toggleButton-prop">toggleButton</a> and <a href="#on-prop">on</a>. <p>Set this property's value with <a href="#setIconSet">setIconSet</a>() and get this property's value with <a href="#iconSet">iconSet</a>(). <h3 class=fn><a href="qiconset.html">QIconSet</a> <a name="offIconSet-prop"></a>offIconSet</h3> <p>This property holds the icon set that is used when the button is in an "off" state. <p><b>This property is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Since Qt 3.0, <a href="qiconset.html">QIconSet</a> contains both the On and Off icons. There is now an <a href="#iconSet-prop">QToolButton::iconSet</a> property that replaces both <a href="#onIconSet-prop">QToolButton::onIconSet</a> and <a href="#offIconSet-prop">QToolButton::offIconSet</a>. <p> For ease of porting, this property is a synonym for <a href="#iconSet-prop">QToolButton::iconSet</a>. You probably want to go over your application code and use the QIconSet On/Off mechanism. <p> <p>See also <a href="#iconSet-prop">iconSet</a> and <a href="qiconset.html#State-enum">QIconSet::State</a>. <p>Set this property's value with <a href="#setOffIconSet">setOffIconSet</a>() and get this property's value with <a href="#offIconSet">offIconSet</a>(). <h3 class=fn>bool <a name="on-prop"></a>on</h3> <p>This property holds whether this tool button is on. <p>This property has no effect on <a href="qbutton.html#isToggleButton">non-toggling buttons.</a> The default is FALSE (i.e. off). <p> <p>See also <a href="#toggleButton-prop">toggleButton</a> and <a href="#toggle">toggle</a>(). <p>Set this property's value with <a href="#setOn">setOn</a>(). <h3 class=fn><a href="qiconset.html">QIconSet</a> <a name="onIconSet-prop"></a>onIconSet</h3> <p>This property holds the icon set that is used when the button is in an "on" state. <p><b>This property is obsolete.</b> It is provided to keep old source working. We strongly advise against using it in new code. <p> Since Qt 3.0, <a href="qiconset.html">QIconSet</a> contains both the On and Off icons. There is now an <a href="#iconSet-prop">QToolButton::iconSet</a> property that replaces both <a href="#onIconSet-prop">QToolButton::onIconSet</a> and <a href="#offIconSet-prop">QToolButton::offIconSet</a>. <p> For ease of porting, this property is a synonym for <a href="#iconSet-prop">QToolButton::iconSet</a>. You probably want to go over your application code and use the QIconSet On/Off mechanism. <p> <p>See also <a href="#iconSet-prop">iconSet</a> and <a href="qiconset.html#State-enum">QIconSet::State</a>. <p>Set this property's value with <a href="#setOnIconSet">setOnIconSet</a>() and get this property's value with <a href="#onIconSet">onIconSet</a>(). <h3 class=fn>int <a name="popupDelay-prop"></a>popupDelay</h3> <p>This property holds the time delay between pressing the button and the appearance of the associated popup menu in milliseconds. <p>Usually this is around half a second. A value of 0 will add a special section to the toolbutton that can be used to open the popupmenu. <p> <p>See also <a href="#setPopup">setPopup</a>(). <p>Set this property's value with <a href="#setPopupDelay">setPopupDelay</a>() and get this property's value with <a href="#popupDelay">popupDelay</a>(). <h3 class=fn><a href="qstring.html">QString</a> <a name="textLabel-prop"></a>textLabel</h3> <p>This property holds the label of this button. <p>Setting this property automatically sets the text as tool tip too. There is no default text. <p>Set this property's value with <a href="#setTextLabel">setTextLabel</a>() and get this property's value with <a href="#textLabel">textLabel</a>(). <h3 class=fn>bool <a name="toggleButton-prop"></a>toggleButton</h3> <p>This property holds whether this tool button is a toggle button. <p>Toggle buttons have an on/off state similar to <a href="qcheckbox.html">check boxes.</a> A tool button is not a toggle button by default. <p> <p>See also <a href="#on-prop">on</a> and <a href="#toggle">toggle</a>(). <p>Set this property's value with <a href="#setToggleButton">setToggleButton</a>(). <h3 class=fn>bool <a name="usesBigPixmap-prop"></a>usesBigPixmap</h3> <p>This property holds whether this toolbutton uses big pixmaps. <p>QToolButton automatically connects this property to the relevant signal in the <a href="qmainwindow.html">QMainWindow</a> in which it resides. We strongly recommend that you use <a href="qmainwindow.html#setUsesBigPixmaps">QMainWindow::setUsesBigPixmaps</a>() instead. <p> This property's default is TRUE. <p> <b>Warning:</b> If you set some buttons (in a QMainWindow) to have big pixmaps and others to have small pixmaps, QMainWindow may not get the geometry right. <p>Set this property's value with <a href="#setUsesBigPixmap">setUsesBigPixmap</a>() and get this property's value with <a href="#usesBigPixmap">usesBigPixmap</a>(). <h3 class=fn>bool <a name="usesTextLabel-prop"></a>usesTextLabel</h3> <p>This property holds whether the toolbutton displays a text label below the button pixmap. <p>The default is FALSE. <p> QToolButton automatically connects this slot to the relevant signal in the <a href="qmainwindow.html">QMainWindow</a> in which is resides. <p>Set this property's value with <a href="#setUsesTextLabel">setUsesTextLabel</a>() and get this property's value with <a href="#usesTextLabel">usesTextLabel</a>(). <!-- eof --> <hr><p> This file is part of the <a href="index.html">Qt toolkit</a>. Copyright © 1995-2001 <a href="http://www.trolltech.com/">Trolltech</a>. All Rights Reserved.<p><address><hr><div align=center> <table width=100% cellspacing=0 border=0><tr> <td>Copyright © 2001 <a href="http://www.trolltech.com">Trolltech</a><td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a> <td align=right><div align=right>Qt version 3.0.2</div> </table></div></address></body> </html>