<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- /home/espenr/tmp/qt - 3.3.8 - espenr - 2499/qt - x11 - free - 3.3.8/src/widgets/qtoolbutton.cpp:75 -->
< html >
< head >
< meta http-equiv = "Content-Type" content = "text/html; charset=ISO-8859-1" >
< title > TQToolButton Class< / title >
< style type = "text/css" > < ! - -
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 > TQToolButton Class Reference< / h1 >
< p > The TQToolButton class provides a quick-access button to
commands or options, usually used inside a TQToolBar.
< a href = "#details" > More...< / a >
< p > < tt > #include < < a href = "qtoolbutton-h.html" > ntqtoolbutton.h< / a > > < / tt >
< p > Inherits < a href = "ntqbutton.html" > TQButton< / a > .
< p > < a href = "qtoolbutton-members.html" > List of all member functions.< / a >
< h2 > Public Members< / h2 >
< ul >
< li class = fn > enum < a href = "#TextPosition-enum" > < b > TextPosition< / b > < / a > { BesideIcon, BelowIcon, Right = BesideIcon, Under = BelowIcon }< / li >
< li class = fn > < a href = "#TQToolButton" > < b > TQToolButton< / b > < / a > ( TQWidget * parent, const char * name = 0 )< / li >
< li class = fn > < a href = "#TQToolButton-2" > < b > TQToolButton< / b > < / a > ( const TQIconSet & iconSet, const TQString & textLabel, const TQString & grouptext, TQObject * receiver, const char * slot, TQToolBar * parent, const char * name = 0 )< / li >
< li class = fn > < a href = "#TQToolButton-3" > < b > TQToolButton< / b > < / a > ( ArrowType type, TQWidget * parent, const char * name = 0 )< / li >
< li class = fn > < a href = "#~TQToolButton" > < b > ~TQToolButton< / b > < / a > ()< / li >
< li class = fn > virtual void < a href = "#setIconSet" > < b > setIconSet< / b > < / a > ( const TQIconSet & )< / li >
< li class = fn > TQIconSet < a href = "#iconSet" > < b > iconSet< / b > < / a > () const< / li >
< li class = fn > bool < a href = "#usesBigPixmap" > < b > usesBigPixmap< / b > < / a > () const< / li >
< li class = fn > bool < a href = "#usesTextLabel" > < b > usesTextLabel< / b > < / a > () const< / li >
< li class = fn > TQString < a href = "#textLabel" > < b > textLabel< / b > < / a > () const< / li >
< li class = fn > void < a href = "#setPopup" > < b > setPopup< / b > < / a > ( TQPopupMenu * popup )< / li >
< li class = fn > TQPopupMenu * < a href = "#popup" > < b > popup< / b > < / a > () const< / li >
< li class = fn > void < a href = "#setPopupDelay" > < b > setPopupDelay< / b > < / a > ( int delay )< / li >
< li class = fn > int < a href = "#popupDelay" > < b > popupDelay< / b > < / a > () const< / li >
< li class = fn > void < a href = "#openPopup" > < b > openPopup< / b > < / a > ()< / li >
< li class = fn > void < a href = "#setAutoRaise" > < b > setAutoRaise< / b > < / a > ( bool enable )< / li >
< li class = fn > bool < a href = "#autoRaise" > < b > autoRaise< / b > < / a > () const< / li >
< li class = fn > TextPosition < a href = "#textPosition" > < b > textPosition< / b > < / a > () const< / li >
< / ul >
< h2 > Public Slots< / h2 >
< ul >
< li class = fn > virtual void < a href = "#setUsesBigPixmap" > < b > setUsesBigPixmap< / b > < / a > ( bool enable )< / li >
< li class = fn > virtual void < a href = "#setUsesTextLabel" > < b > setUsesTextLabel< / b > < / a > ( bool enable )< / li >
< li class = fn > virtual void < a href = "#setTextLabel-2" > < b > setTextLabel< / b > < / a > ( const TQString & newLabel, bool tipToo )< / li >
< li class = fn > virtual void < a href = "#setToggleButton" > < b > setToggleButton< / b > < / a > ( bool enable )< / li >
< li class = fn > virtual void < a href = "#setOn" > < b > setOn< / b > < / a > ( bool enable )< / li >
< li class = fn > void < a href = "#toggle" > < b > toggle< / b > < / a > ()< / li >
< li class = fn > void < a href = "#setTextLabel" > < b > setTextLabel< / b > < / a > ( const TQString & )< / li >
< li class = fn > void < a href = "#setTextPosition" > < b > setTextPosition< / b > < / a > ( TextPosition pos )< / li >
< / ul >
< h2 > Properties< / h2 >
< ul >
< li class = fn > bool < a href = "#autoRaise-prop" > < b > autoRaise< / b > < / a > - whether auto-raising is enabled< / li >
< li class = fn > BackgroundMode < a href = "#backgroundMode-prop" > < b > backgroundMode< / b > < / a > - the toolbutton's background mode < em > (read only)< / em > < / li >
< li class = fn > TQIconSet < a href = "#iconSet-prop" > < b > iconSet< / b > < / a > - the icon set providing the icon shown on the button< / li >
< li class = fn > bool < a href = "#on-prop" > < b > on< / b > < / a > - whether this tool button is on< / li >
< li class = fn > TQPixmap < a href = "#pixmap-prop" > < b > pixmap< / b > < / a > - the pixmap of the button < em > (read only)< / em > < / li >
< li 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< / li >
< li class = fn > TQString < a href = "#textLabel-prop" > < b > textLabel< / b > < / a > - the label of this button< / li >
< li class = fn > TextPosition < a href = "#textPosition-prop" > < b > textPosition< / b > < / a > - the position of the text label of this button< / li >
< li class = fn > bool < a href = "#toggleButton-prop" > < b > toggleButton< / b > < / a > - whether this tool button is a toggle button< / li >
< li class = fn > bool < a href = "#usesBigPixmap-prop" > < b > usesBigPixmap< / b > < / a > - whether this toolbutton uses big pixmaps< / li >
< li class = fn > bool < a href = "#usesTextLabel-prop" > < b > usesTextLabel< / b > < / a > - whether the toolbutton displays a text label below the button pixmap< / li >
< / ul >
< h2 > Protected Members< / h2 >
< ul >
< li class = fn > bool < a href = "#uses3D" > < b > uses3D< / b > < / a > () const< / li >
< / ul >
< hr > < a name = "details" > < / a > < h2 > Detailed Description< / h2 >
The TQToolButton class provides a quick-access button to
commands or options, usually used inside a < a href = "ntqtoolbar.html" > TQToolBar< / 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 show a text label, but shows
an icon instead. Its classic usage is to select tools, for example
the "pen" tool in a drawing program. This would be implemented
with a TQToolButton as toggle button (see < a href = "#setToggleButton" > setToggleButton< / a > () ).
< p > TQToolButton 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 TQToolBar.
Change it with < a href = "#setAutoRaise" > setAutoRaise< / a > ().
< p > A tool button's icon is set as < a href = "ntqiconset.html" > TQIconSet< / 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 mouse pointer is hovering over 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 = "ntqtoolbar.html" > TQToolBar< / a > in a < a href = "ntqmainwindow.html" > TQMainWindow< / a > , the button automatically adjusts to
TQMainWindow's settings (see < a href = "ntqmainwindow.html#setUsesTextLabel" > TQMainWindow::setUsesTextLabel< / a > () and
< a href = "ntqmainwindow.html#setUsesBigPixmaps" > TQMainWindow::setUsesBigPixmaps< / a > ()). The pixmap set on a TQToolButton
will be set to 22x22 if it is bigger than this size. If
< a href = "#usesBigPixmap" > usesBigPixmap< / a > () is TRUE, then the pixmap will be set to 32x32.
< 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 and holding the button down for a while, a menu
pops up showing a list of possible pages to jump to. With
TQToolButton you can set a popup menu using < a href = "#setPopup" > setPopup< / a > (). The default
delay is 600ms; you can adjust it with < a href = "#setPopupDelay" > setPopupDelay< / a > ().
< p > < center > < img src = "qdockwindow.png" alt = "Toolbar with Toolbuttons \caption A floating" > < / center > TQToolbar with TQToolbuttons
< p > < p > See also < a href = "ntqpushbutton.html" > TQPushButton< / a > , < a href = "ntqtoolbar.html" > TQToolBar< / a > , < a href = "ntqmainwindow.html" > TQMainWindow< / a > , < a href = "guibooks.html#fowler
">GUI Design Handbook: Push Button< / a > , and < a href = "basic.html" > Basic Widgets< / a > .
< hr > < h2 > Member Type Documentation< / h2 >
< h3 class = fn > < a name = "TextPosition-enum" > < / a > TQToolButton::TextPosition< / h3 >
< p > The position of the tool button's textLabel in relation to the
tool button's icon.
< ul >
< li > < tt > TQToolButton::BesideIcon< / tt > - The text appears beside the icon.
< li > < tt > TQToolButton::BelowIcon< / tt > - The text appears below the icon.
< / ul >
< hr > < h2 > Member Function Documentation< / h2 >
< h3 class = fn > < a name = "TQToolButton" > < / a > TQToolButton::TQToolButton ( < a href = "tqwidget.html" > TQWidget< / a > * parent, const char * name = 0 )
< / h3 >
Constructs an empty tool button called < em > name< / em > , with parent < em > parent< / em > .
< h3 class = fn > < a name = "TQToolButton-2" > < / a > TQToolButton::TQToolButton ( const < a href = "ntqiconset.html" > TQIconSet< / a > & iconSet, const < a href = "ntqstring.html" > TQString< / a > & textLabel, const < a href = "ntqstring.html" > TQString< / a > & grouptext, < a href = "tqobject.html" > TQObject< / a > * receiver, const char * slot, < a href = "ntqtoolbar.html" > TQToolBar< / a > * parent, const char * name = 0 )
< / h3 >
Constructs a tool button called < em > name< / em > , that is a child of < em > parent< / em > (which must be a < a href = "ntqtoolbar.html" > TQToolBar< / a > ).
< 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 = "TQToolButton-3" > < / a > TQToolButton::TQToolButton ( < a href = "ntqt.html#ArrowType-enum" > ArrowType< / a > type, < a href = "tqwidget.html" > TQWidget< / a > * parent, const char * name = 0 )
< / h3 >
Constructs a tool button as an arrow button. The < a href = "ntqt.html#ArrowType-enum" > ArrowType< / a > < em > type< / em > defines the arrow direction. Possible values are < a href = "ntqt.html#ArrowType-enum" > LeftArrow< / a > , < a href = "ntqt.html#ArrowType-enum" > RightArrow< / a > , < a href = "ntqt.html#ArrowType-enum" > UpArrow< / a > and < a href = "ntqt.html#ArrowType-enum" > DownArrow< / a > .
< 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 = "tqwidget.html" > TQWidget< / a >
constructor.
< h3 class = fn > < a name = "~TQToolButton" > < / a > TQToolButton::~TQToolButton ()
< / h3 >
Destroys the object and frees any allocated resources.
< h3 class = fn > bool < a name = "autoRaise" > < / a > TQToolButton::autoRaise () const
< / h3 > < p > Returns TRUE if auto-raising is enabled; otherwise returns FALSE.
See the < a href = "ntqtoolbutton.html#autoRaise-prop" > "autoRaise"< / a > property for details.
< h3 class = fn > < a href = "ntqiconset.html" > TQIconSet< / a > < a name = "iconSet" > < / a > TQToolButton::iconSet () const
< / h3 > < p > Returns the icon set providing the icon shown on the button.
See the < a href = "ntqtoolbutton.html#iconSet-prop" > "iconSet"< / a > property for details.
< h3 class = fn > void < a name = "openPopup" > < / a > TQToolButton::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 = "ntqpopupmenu.html" > TQPopupMenu< / a > * < a name = "popup" > < / a > TQToolButton::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 > TQToolButton::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 = "ntqtoolbutton.html#popupDelay-prop" > "popupDelay"< / a > property for details.
< h3 class = fn > void < a name = "setAutoRaise" > < / a > TQToolButton::setAutoRaise ( bool enable )
< / h3 > < p > Sets whether auto-raising is enabled to < em > enable< / em > .
See the < a href = "ntqtoolbutton.html#autoRaise-prop" > "autoRaise"< / a > property for details.
< h3 class = fn > void < a name = "setIconSet" > < / a > TQToolButton::setIconSet ( const < a href = "ntqiconset.html" > TQIconSet< / a > & )< tt > [virtual]< / tt >
< / h3 > < p > Sets the icon set providing the icon shown on the button.
See the < a href = "ntqtoolbutton.html#iconSet-prop" > "iconSet"< / a > property for details.
< h3 class = fn > void < a name = "setOn" > < / a > TQToolButton::setOn ( bool enable )< tt > [virtual slot]< / tt >
< / h3 > < p > Sets whether this tool button is on to < em > enable< / em > .
See the < a href = "ntqtoolbutton.html#on-prop" > "on"< / a > property for details.
< h3 class = fn > void < a name = "setPopup" > < / a > TQToolButton::setPopup ( < a href = "ntqpopupmenu.html" > TQPopupMenu< / 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 presses and 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 > TQToolButton::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 = "ntqtoolbutton.html#popupDelay-prop" > "popupDelay"< / a > property for details.
< h3 class = fn > void < a name = "setTextLabel" > < / a > TQToolButton::setTextLabel ( const < a href = "ntqstring.html" > TQString< / a > & )< tt > [slot]< / tt >
< / h3 > < p > Sets the label of this button.
See the < a href = "ntqtoolbutton.html#textLabel-prop" > "textLabel"< / a > property for details.
< h3 class = fn > void < a name = "setTextLabel-2" > < / a > TQToolButton::setTextLabel ( const < a href = "ntqstring.html" > TQString< / 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 a tool tip if < em > tipToo< / em > is TRUE.
< h3 class = fn > void < a name = "setTextPosition" > < / a > TQToolButton::setTextPosition ( < a href = "ntqtoolbutton.html#TextPosition-enum" > TextPosition< / a > pos )< tt > [slot]< / tt >
< / h3 > < p > Sets the position of the text label of this button to < em > pos< / em > .
See the < a href = "ntqtoolbutton.html#textPosition-prop" > "textPosition"< / a > property for details.
< h3 class = fn > void < a name = "setToggleButton" > < / a > TQToolButton::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 = "ntqtoolbutton.html#toggleButton-prop" > "toggleButton"< / a > property for details.
< h3 class = fn > void < a name = "setUsesBigPixmap" > < / a > TQToolButton::setUsesBigPixmap ( bool enable )< tt > [virtual slot]< / tt >
< / h3 > < p > Sets whether this toolbutton uses big pixmaps to < em > enable< / em > .
See the < a href = "ntqtoolbutton.html#usesBigPixmap-prop" > "usesBigPixmap"< / a > property for details.
< h3 class = fn > void < a name = "setUsesTextLabel" > < / a > TQToolButton::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 = "ntqtoolbutton.html#usesTextLabel-prop" > "usesTextLabel"< / a > property for details.
< h3 class = fn > < a href = "ntqstring.html" > TQString< / a > < a name = "textLabel" > < / a > TQToolButton::textLabel () const
< / h3 > < p > Returns the label of this button.
See the < a href = "ntqtoolbutton.html#textLabel-prop" > "textLabel"< / a > property for details.
< h3 class = fn > < a href = "ntqtoolbutton.html#TextPosition-enum" > TextPosition< / a > < a name = "textPosition" > < / a > TQToolButton::textPosition () const
< / h3 > < p > Returns the position of the text label of this button.
See the < a href = "ntqtoolbutton.html#textPosition-prop" > "textPosition"< / a > property for details.
< h3 class = fn > void < a name = "toggle" > < / a > TQToolButton::toggle ()< tt > [slot]< / tt >
< / h3 >
Toggles the state of this tool button.
< p > This function has no effect on < a href = "ntqbutton.html#isToggleButton" > non-toggling
buttons.< / a >
< p > < p > See also < a href = "#toggleButton-prop" > toggleButton< / a > and < a href = "ntqbutton.html#toggled" > toggled< / a > ().
< h3 class = fn > bool < a name = "uses3D" > < / a > TQToolButton::uses3D () const< tt > [protected]< / tt >
< / h3 >
Returns TRUE if this button should be drawn using raised edges;
otherwise returns FALSE.
< p > < p > See also < a href = "ntqbutton.html#drawButton" > drawButton< / a > ().
< h3 class = fn > bool < a name = "usesBigPixmap" > < / a > TQToolButton::usesBigPixmap () const
< / h3 > < p > Returns TRUE if this toolbutton uses big pixmaps; otherwise returns FALSE.
See the < a href = "ntqtoolbutton.html#usesBigPixmap-prop" > "usesBigPixmap"< / a > property for details.
< h3 class = fn > bool < a name = "usesTextLabel" > < / a > TQToolButton::usesTextLabel () const
< / h3 > < p > Returns TRUE if the toolbutton displays a text label below the button pixmap; otherwise returns FALSE.
See the < a href = "ntqtoolbutton.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 = "ntqt.html#BackgroundMode-enum" > BackgroundMode< / a > < a name = "backgroundMode-prop" > < / a > backgroundMode< / h3 >
< p > This property holds the toolbutton's background mode.
< p > Get this property with < a href = "tqwidget.html#backgroundMode" > backgroundMode< / a > ().
< p > < p > See also < a href = "tqwidget.html#backgroundMode-prop" > TQWidget::backgroundMode< / a > .
< p > < h3 class = fn > < a href = "ntqiconset.html" > TQIconSet< / 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 = "#pixmap-prop" > TQToolButton::pixmap< / a > to a null
pixmap. There is no default iconset.
< p > < p > See also < a href = "#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 > 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 = "ntqbutton.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 = "ntqpixmap.html" > TQPixmap< / a > < a name = "pixmap-prop" > < / a > pixmap< / h3 > < p > This property holds the pixmap of the button.
< p > The pixmap property has no meaning for tool buttons. Use the
iconSet property instead.
< p > < 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 draws the down
arrow button to the side of the button which can be used to open
up the popup menu.
< 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 = "ntqstring.html" > TQString< / 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 a 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 > < a href = "ntqtoolbutton.html#TextPosition-enum" > TextPosition< / a > < a name = "textPosition-prop" > < / a > textPosition< / h3 >
< p > This property holds the position of the text label of this button.
< p >
< p > Set this property's value with < a href = "#setTextPosition" > setTextPosition< / a > () and get this property's value with < a href = "#textPosition" > textPosition< / 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 = "ntqcheckbox.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 > TQToolButton automatically connects this property to the relevant
signal in the < a href = "ntqmainwindow.html" > TQMainWindow< / a > in which it resides. We strongly
recommend that you use < a href = "ntqmainwindow.html#setUsesBigPixmaps" > TQMainWindow::setUsesBigPixmaps< / a > () instead.
< p > This property's default is TRUE.
< p > < b > Warning:< / b > If you set some buttons (in a TQMainWindow) to have big
pixmaps and others to have small pixmaps, TQMainWindow 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 > TQToolButton automatically connects this slot to the relevant
signal in the < a href = "ntqmainwindow.html" > TQMainWindow< / 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" > TQt toolkit< / a > .
Copyright © 1995-2007
< 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 © 2007
< a href = "troll.html" > Trolltech< / a > < td align = center > < a href = "trademarks.html" > Trademarks< / a >
< td align = right > < div align = right > TQt 3.3.8< / div >
< / table > < / div > < / address > < / body >
< / html >