1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><html><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Qt Toolkit - QPushButton 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: white; color: black; }
--></style>
</head><body bgcolor="#ffffff">
<table width="100%">
<tr><td><a href="index.html">
<img width="100" height="100" src="qtlogo.png"
alt="Home" border="0"><img width="100"
height="100" src="face.png" alt="Home" border="0">
</a><td valign=top><div align=right><img src="dochead.png" width="472" height="27"><br>
<a href="classes.html"><b>Classes</b></a>
-<a href="annotated.html">Annotated</a>
- <a href="hierarchy.html">Tree</a>
-<a href="functions.html">Functions</a>
-<a href="index.html">Home</a>
-<a href="topicals.html"><b>Structure</b></a>
</div>
</table>
<h1 align=center>QPushButton Class Reference</h1><br clear="all">
<p>
The QPushButton widget provides a command button.
<a href="#details">More...</a>
<p>
<code>#include <<a href="qpushbutton-h.html">qpushbutton.h</a>></code>
<p>
Inherits <a href="qbutton.html">QButton</a>.
<p><a href="qpushbutton-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#9b70ce"><b>QPushButton</b></a>(QWidget*parent, constchar*name=0)</div>
<li><div class="fn"><a href="#f8e50c"><b>QPushButton</b></a>(constQString&text, QWidget*parent, constchar*name=0)</div>
<li><div class="fn"><a href="#dc91fd"><b>QPushButton</b></a>(constQIconSet&icon, constQString&text, QWidget*parent, constchar*name=0)</div>
<li><div class="fn"><a href="#316bca"><b>~QPushButton</b></a>()</div>
<li><div class="fn">virtualvoid<a href="#cf550e"><b>setToggleButton</b></a>(bool)</div>
<li><div class="fn">bool<a href="#0a887a"><b>autoDefault</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#723d91"><b>setAutoDefault</b></a>(boolautoDef)</div>
<li><div class="fn">bool<a href="#ee0b8c"><b>isDefault</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="#d415f9"><b>setDefault</b></a>(booldef)</div>
<li><div class="fn">virtualvoidsetIsMenuButton(bool)<em>(obsolete)</em></div>
<li><div class="fn">boolisMenuButton()const<em>(obsolete)</em></div>
<li><div class="fn">void<a href="#d8e2fd"><b>setPopup</b></a>(QPopupMenu*popup)</div>
<li><div class="fn">QPopupMenu*<a href="#4c3886"><b>popup</b></a>()const</div>
<li><div class="fn">void<a href="#5a2e80"><b>setIconSet</b></a>(constQIconSet&)</div>
<li><div class="fn">QIconSet*<a href="#9b293f"><b>iconSet</b></a>()const</div>
<li><div class="fn">void<a href="#1c1bfd"><b>setFlat</b></a>(bool)</div>
<li><div class="fn">bool<a href="#50b6db"><b>isFlat</b></a>()const</div>
</ul>
<h2>Public Slots</h2>
<ul>
<li><div class="fn">virtualvoid<a href="#15502f"><b>setOn</b></a>(bool)</div>
<li><div class="fn">void<a href="#3882a9"><b>toggle</b></a>()</div>
</ul>
<h2>Important Inherited Members</h2>
<ul>
<li><div class="fn">QString<a href="qbutton.html#6033fb"><b>text</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="qbutton.html#989f4f"><b>setText</b></a>(constQString&text)</div>
<li><div class="fn">QString<a href="qbutton.html#6033fb"><b>text</b></a>()const</div>
<li><div class="fn">constQPixmap*<a href="qbutton.html#0e318f"><b>pixmap</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="qbutton.html#27e4fe"><b>setPixmap</b></a>(constQPixmap&pixmap)</div>
<li><div class="fn">int<a href="qbutton.html#eff9e3"><b>accel</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="qbutton.html#da0271"><b>setAccel</b></a>(intkey)</div>
<li><div class="fn">bool<a href="qbutton.html#1ad908"><b>isToggleButton</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="qbutton.html#f865ac"><b>setDown</b></a>(boolenable)</div>
<li><div class="fn">bool<a href="qbutton.html#ea8b93"><b>isDown</b></a>()const</div>
<li><div class="fn">bool<a href="qbutton.html#12ce08"><b>isOn</b></a>()const</div>
<li><div class="fn">bool<a href="qbutton.html#359c59"><b>autoRepeat</b></a>()const</div>
<li><div class="fn">bool<a href="qbutton.html#7ab492"><b>isExclusiveToggle</b></a>()const</div>
<li><div class="fn">QButtonGroup*<a href="qbutton.html#a64d2c"><b>group</b></a>()const</div>
<li><div class="fn">virtualvoid<a href="qbutton.html#221ffa"><b>setAutoRepeat</b></a>(boolenable)</div>
<li><div class="fn">void<a href="#3882a9"><b>toggle</b></a>()</div>
<li><div class="fn">void<a href="qbutton.html#a27000"><b>pressed</b></a>()</div>
<li><div class="fn">void<a href="qbutton.html#e6fa8e"><b>released</b></a>()</div>
<li><div class="fn">void<a href="qbutton.html#da7248"><b>clicked</b></a>()</div>
<li><div class="fn">void<a href="qbutton.html#4069b1"><b>toggled</b></a>(boolon)</div>
<li><div class="fn">void<a href="qbutton.html#3369ee"><b>stateChanged</b></a>(intstate)</div>
</ul>
<h2>Properties</h2>
<table border=1 cellpadding=3 cellspacing=0>
<tr><th>Type<th>Name<th>READ<th>WRITE<th>Options
<tr><td>bool<td>autoDefault<td>autoDefault<td>setAutoDefault<td>
<tr><td>bool<td>default<td>isDefault<td>setDefault<td>
<tr><td>bool<td>menuButton<td>isMenuButton<td> <td>
<tr><td>QIconSet<td>iconSet<td>iconSet<td>setIconSet<td>
<tr><td>bool<td>flat<td>isFlat<td>setFlat<td>
</table>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QPushButton widget provides a command button.
<p>
The push button, also referred to as command button, is perhaps the
most central widget in any graphical user interface: Push it to
command the computer to perform some action. Typical actions are Ok,
Apply, Cancel, Close or Help.
<p>A command button is rectangular (ca. 80x22 pixel) and typically
displays a text label describing its action. An underscored
character in the label, marked with an ampersand in the text,
signals an accelerator key.
<p>This code creates a push button labelled "Rock & Roll". Due to the
first ampersand, the c displays underscored and the button gets the
automatic accelerator key, Alt-C:
<p><pre> <a href="qpushbutton.html">QPushButton</a> *p = new <a href="qpushbutton.html">QPushButton</a>( "Ro&ck && Roll", this );
</pre>
<p>The text can be changed anytime later with <a href="qbutton.html#989f4f">setText</a>(). You can also
define a pixmap with <a href="qbutton.html#27e4fe">setPixmap</a>(). The text/pixmap is manipulated as
necessary to create "disabled" appearance according to the
respective GUI style when the button is disabled. A command button
can, in addition to the text or pixmap label, also display a little
icon. Use the extended constructor or <a href="#5a2e80">setIconSet</a>() to define this
icon.
<p>A push button emits the signal <a href="qbutton.html#da7248">clicked</a>() when it is activated,
either with the mouse, the spacebar or a keyboard accelerator.
Connect to this signal to perform the button's action. Other
signals of less importance are <a href="qbutton.html#a27000">pressed</a>() when the button is pressed
down and <a href="qbutton.html#e6fa8e">released</a>() when it is released, respectively.
<p>Command buttons in dialogs are by default auto-default buttons,
i.e. they become the default push button automatically when they
receive the keyboard input focus. A default button is a command
button that is activated when the users hits the Enter or Return key
in a dialog. Adjust this behaviour with <a href="#723d91">setAutoDefault</a>(). Note that
auto-default buttons reserve a little extra space necessary to draw
a default-button indicator. If you do not want this space around
your buttons, call setAutoDefault( FALSE ).
<p>Being so central, the widget has grown to accomodate a great many
variations in the past decade, and by now the Microsoft style guide
shows about ten different states of Windows push buttons, and the
text implies that there are dozens more when all the combinations of
features are taken into consideration.
<p>The most important modes or states are, sorted roughly by importance: <ul>
<li> Available or not ("grayed out", disabled).
<li> Standard push button, toggling push button or menu button.
<li> On or off (only for toggling push buttons).
<li> Default or normal. The default button in a dialog can
generally be "clicked" using the Enter or Return key.
<li> Auto-repeat or not.
<li> Pressed down or not.
</ul>
<p>As a general rule, use a push button when the application or dialog
window performs an action when the user clicks on it (like Apply,
Cancel, Close, Help, ...) <em>and</em> when the widget is supposed to have
a wide, rectangular shape with a text label. Small, typically
square buttons that change the state of the window rather than
performing an action (like for example the buttons in the top/right
corner of the <a href="qfiledialog.html">QFileDialog</a>), are not command buttons, but tool
buttons. Qt provides a special class <a href="qtoolbutton.html">QToolButton</a> for these.
<p>Also, if you need toggle behaviour (see <a href="#cf550e">setToggleButton</a>()) or a button
that auto-repeats the activation signal when being pushed down like
the arrows in a scrollbar (see <a href="qbutton.html#221ffa">setAutoRepeat</a>()), a command button is
probably not what you want. In case of doubt, go with a tool button.
<p>A variation of a command button is a menu button. It provides not
just one command, but several. Use the method <a href="#d8e2fd">setPopup</a>() to
associate a popup menu with a push button.
<p>Other classes of buttons are option buttons (see <a href="qradiobutton.html">QRadioButton</a>) and
check boxes (see <a href="qcheckbox.html">QCheckBox</a>).
<p><img src="qpushbt-m.png"> <img src="qpushbt-w.png">
<p>In Qt, the <a href="qbutton.html">QButton</a> class provides most of the modes and other API,
and QPushButton provides GUI logic. See QButton for more
information about the API.
<p>See also <a href="qtoolbutton.html">QToolButton</a>, <a href="qradiobutton.html">QRadioButton</a>, <a href="qcheckbox.html">QCheckBox</a> and <a href="guibooks.html#fowler">GUI Design Handbook: Push Button</a>
<p>Examples:
<a href="xform-xform-cpp.html#QPushButton">xform/xform.cpp</a>
<a href="layout-layout-cpp.html#QPushButton">layout/layout.cpp</a>
<a href="i18n-main-cpp.html#QPushButton">i18n/main.cpp</a>
<a href="drawdemo-drawdemo-cpp.html#QPushButton">drawdemo/drawdemo.cpp</a>
<a href="popup-popup-cpp.html#QPushButton">popup/popup.cpp</a>
<a href="qmag-qmag-cpp.html#QPushButton">qmag/qmag.cpp</a>
<a href="rot13-rot13-cpp.html#QPushButton">rot13/rot13.cpp</a>
<a href="scrollview-scrollview-cpp.html#QPushButton">scrollview/scrollview.cpp</a>
<a href="customlayout-main-cpp.html#QPushButton">customlayout/main.cpp</a>
<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="9b70ce"></a>QPushButton::QPushButton(<a href="qwidget.html">QWidget</a>*parent, constchar*name=0)</h3>
<p>Constructs a push button with no text.
<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="dc91fd"></a>QPushButton::QPushButton(const<a href="qiconset.html">QIconSet</a>&icon, const<a href="qstring.html">QString</a>&text, <a href="qwidget.html">QWidget</a>*parent, constchar*name=0)</h3>
<p>Constructs a push button with an <em>icon</em> and a <em>text.</em>
<p>Note that you can also pass a <a href="qpixmap.html">QPixmap</a> object as icon (thanks to C++'
implicit type conversion).
<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="f8e50c"></a>QPushButton::QPushButton(const<a href="qstring.html">QString</a>&text, <a href="qwidget.html">QWidget</a>*parent, constchar*name=0)</h3>
<p>Constructs a push button with a text.
<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="316bca"></a>QPushButton::~QPushButton()</h3>
<p>Destructs the push button.
<h3 class="fn">bool<a name="0a887a"></a>QPushButton::autoDefault()const</h3>
<p>Returns TRUE if the button is an auto-default button.
<p>See also <a href="#723d91">setAutoDefault</a>().
<h3 class="fn">void<a name="aaf8ea"></a>QPushButton::drawButton(<a href="qpainter.html">QPainter</a>*paint) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qbutton.html#13c577">QButton.</a>
<h3 class="fn">void<a name="50dbbe"></a>QPushButton::drawButtonLabel(<a href="qpainter.html">QPainter</a>*paint) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qbutton.html#c175f1">QButton.</a>
<h3 class="fn">void<a name="19eb30"></a>QPushButton::focusInEvent(<a href="qfocusevent.html">QFocusEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#21a4b8">QWidget.</a>
<h3 class="fn">void<a name="0953da"></a>QPushButton::focusOutEvent(<a href="qfocusevent.html">QFocusEvent</a>*e) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#de664a">QWidget.</a>
<h3 class="fn"><a href="qiconset.html">QIconSet</a>*<a name="9b293f"></a>QPushButton::iconSet()const</h3>
<p>Returns the button's icon or 0 if no icon has been defined.
<p>See also <a href="#5a2e80">setIconSet</a>().
<h3 class="fn">bool<a name="ee0b8c"></a>QPushButton::isDefault()const</h3>
<p>Returns TRUE if the button is currently default.
<p>See also <a href="#d415f9">setDefault</a>().
<h3 class="fn">bool<a name="50b6db"></a>QPushButton::isFlat()const</h3>
<p>Returns whether the border is disabled.
<p>See also <a href="#1c1bfd">setFlat</a>().
<h3 class="fn">bool<a name="65d4c4"></a>QPushButton::isMenuButton()const</h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt. We strongly advise against using it in new code.<p>
<p>Returns TRUE if this button indicates to the user that pressing
it will pop up a menu, and FALSE otherwise. The default is FALSE.
<p>See also <a href="#e5f7a6">setIsMenuButton</a>().
<h3 class="fn">void<a name="ef94a2"></a>QPushButton::move(const<a href="qpoint.html">QPoint</a>&p)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="ede724"></a>QPushButton::move(intx, inty) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Examples:
<a href="drawdemo-drawdemo-cpp.html#move">drawdemo/drawdemo.cpp</a>
<p>Reimplemented from <a href="qwidget.html#39930b">QWidget.</a>
<h3 class="fn"><a href="qpopupmenu.html">QPopupMenu</a>*<a name="4c3886"></a>QPushButton::popup()const</h3>
<p>Returns the associated popup menu or 0 if no popup menu has been
defined.
<p>See also <a href="#d8e2fd">setPopup</a>().
<h3 class="fn">void<a name="13fb8e"></a>QPushButton::resize(const<a href="qsize.html">QSize</a>&s)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Examples:
<a href="drawdemo-drawdemo-cpp.html#resize">drawdemo/drawdemo.cpp</a>
<h3 class="fn">void<a name="7be66b"></a>QPushButton::resize(intw, inth)</h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="5ccda2"></a>QPushButton::resizeEvent(<a href="qresizeevent.html">QResizeEvent</a>*) <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#7d375f">QWidget.</a>
<h3 class="fn">void<a name="723d91"></a>QPushButton::setAutoDefault(boolenable) <code>[virtual]</code></h3>
<p>Sets the push buttons to an auto-default button if <em>enable</em> is TRUE,
or to a normal button if <em>enable</em> is FALSE.
<p>An auto-default button becomes automatically the default push button
in a dialog when it receives the keyboard input focus.
<p>In some GUI styles, a default button is drawn with an extra frame
around it, up to 3 pixels or more. Qt automatically keeps this space
free around auto-default buttons, i.e. auto-default buttons may have
a slightly larger size hint.
<p>See also <a href="#0a887a">autoDefault</a>() and <a href="#d415f9">setDefault</a>().
<h3 class="fn">void<a name="d415f9"></a>QPushButton::setDefault(boolenable) <code>[virtual]</code></h3>
<p>Sets this button to be the current default button of a
<a href="qdialog.html">dialog</a> if <em>enable</em> is TRUE, or to be a normal button
if <em>enable</em> is FALSE.
<p>The current default button gets clicked when the user presses the
"Enter" key, independently of which widget in the dialog currently
has the keyboard input focus. Only one push button can at any time
be the default button. This button is then displayed with an
additional frame ( depending on the GUI style ).
<p>The default button behaviour is only provided in dialogs. Buttons
can always be clicked from the keyboard by pressing return or the
spacebar when the button has focus.
<p>See also <a href="#ee0b8c">isDefault</a>(), <a href="#723d91">setAutoDefault</a>() and <a href="qdialog.html">QDialog</a>.
<h3 class="fn">void<a name="1c1bfd"></a>QPushButton::setFlat(boolf)</h3>
<p>Disable the border.
<p>See also flat().
<h3 class="fn">void<a name="ea9d95"></a>QPushButton::setGeometry(const<a href="qrect.html">QRect</a>&r) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<h3 class="fn">void<a name="c9b88e"></a>QPushButton::setGeometry(intx, inty, intw, inth) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Examples:
<a href="popup-popup-cpp.html#setGeometry">popup/popup.cpp</a>
<a href="qmag-qmag-cpp.html#setGeometry">qmag/qmag.cpp</a>
<h3 class="fn">void<a name="5a2e80"></a>QPushButton::setIconSet(const<a href="qiconset.html">QIconSet</a>&icon)</h3>
<p>Sets the button to display the icon <em>icon</em> in addition to its text
or pixmap
<p>See also <a href="#9b293f">iconSet</a>().
<h3 class="fn">void<a name="e5f7a6"></a>QPushButton::setIsMenuButton(boolenable) <code>[virtual]</code></h3>
<p><b>This function is obsolete.</b> It is provided to keep old source working, and will probably be removed in a future version of Qt. We strongly advise against using it in new code.<p>
<p>Tells this button to draw a menu indication triangle if <em>enable</em>
is TRUE, and to not draw one if <em>enable</em> is FALSE (the default).
<p>setIsMenuButton() does not cause the button to do anything other
than draw the menu indication.
<p>See also <a href="#65d4c4">isMenuButton</a>().
<h3 class="fn">void<a name="15502f"></a>QPushButton::setOn(boolenable) <code>[virtualslot]</code></h3>
<p>Switches a toggle button on if <em>enable</em> is TRUE or off if <em>enable</em> is
FALSE.
<p>See also <a href="qbutton.html#12ce08">isOn</a>(), <a href="#3882a9">toggle</a>(), <a href="qbutton.html#4069b1">toggled</a>() and <a href="qbutton.html#1ad908">isToggleButton</a>().
<p>Examples:
<a href="qmag-qmag-cpp.html#setOn">qmag/qmag.cpp</a>
<h3 class="fn">void<a name="d8e2fd"></a>QPushButton::setPopup(<a href="qpopupmenu.html">QPopupMenu</a>*popup)</h3>
<p>Associates the popup menu <em>popup</em> with this push button and
thus turns it into a menu button.
<p>Ownership of the popup menu is not transferred.
<p>See also <a href="#4c3886">popup</a>().
<h3 class="fn">void<a name="cf550e"></a>QPushButton::setToggleButton(boolenable) <code>[virtual]</code></h3>
<p>Makes the push button a toggle button if <em>enable</em> is TRUE, or a normal
push button if <em>enable</em> is FALSE.
<p>Toggle buttons have an on/off state similar to <a href="qcheckbox.html">check
boxes.</a> A push button is initially not a toggle button.
<p>See also <a href="#15502f">setOn</a>(), <a href="#3882a9">toggle</a>(), <a href="qbutton.html#1ad908">isToggleButton</a>() and <a href="qbutton.html#4069b1">toggled</a>().
<p>Examples:
<a href="qmag-qmag-cpp.html#setToggleButton">qmag/qmag.cpp</a>
<h3 class="fn"><a href="qsize.html">QSize</a><a name="53cdcb"></a>QPushButton::sizeHint()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#4511d1">QWidget.</a>
<h3 class="fn"><a href="qsizepolicy.html">QSizePolicy</a><a name="cb4f7a"></a>QPushButton::sizePolicy()const <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#23726d">QWidget.</a>
<h3 class="fn">void<a name="3882a9"></a>QPushButton::toggle() <code>[importantinherited]</code></h3>
<p>Toggles the state of a toggle button.
<p>See also <a href="qbutton.html#12ce08">isOn</a>(), <a href="#15502f">setOn</a>(), <a href="qbutton.html#4069b1">toggled</a>() and <a href="qbutton.html#1ad908">isToggleButton</a>().
<h3 class="fn">void<a name="22ade4"></a>QPushButton::updateMask() <code>[virtualprotected]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qwidget.html#b8a07f">QWidget.</a>
<hr><p>
Search the documentation, FAQ, qt-interest archive and more (uses
<a href="http://www.trolltech.com">www.trolltech.com</a>):<br>
<form method=post action="http://www.trolltech.com/search.cgi">
<input type=hidden name="version" value="2.3.2"><nobr>
<input size="50" name="search"><input type=submit value="Search">
</nobr></form><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 Trolltech<td><a href="http://www.trolltech.com/trademarks.html">Trademarks</a>
<td align="right"><div align="right">Qt version 2.3.2</div>
</table></div></address></body></html>
|