~oif-team/ubuntu/natty/qt4-x11/xi2.1

« back to all changes in this revision

Viewing changes to doc/html/qradiobutton.html

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-08-24 04:09:09 UTC
  • Revision ID: james.westby@ubuntu.com-20050824040909-xmxe9jfr4a0w5671
Tags: upstream-4.0.0
ImportĀ upstreamĀ versionĀ 4.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="iso-8859-1"?>
 
2
<!DOCTYPE html
 
3
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "DTD/xhtml1-strict.dtd">
 
4
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 
5
<!-- /tmp/qt-4.0.0-espenr-1119621036935/qt-x11-opensource-desktop-4.0.0/src/gui/widgets/qradiobutton.cpp -->
 
6
<head>
 
7
    <title>Qt 4.0: QRadioButton Class Reference</title>
 
8
    <style>h3.fn,span.fn { margin-left: 1cm; text-indent: -1cm; }
 
9
a:link { color: #004faf; text-decoration: none }
 
10
a:visited { color: #672967; text-decoration: none }
 
11
td.postheader { font-family: sans-serif }
 
12
tr.address { font-family: sans-serif }
 
13
body { background: #ffffff; color: black; }</style>
 
14
</head>
 
15
<body>
 
16
<table border="0" cellpadding="0" cellspacing="0" width="100%">
 
17
<tr>
 
18
<td align="left" valign="top" width="32"><img src="images/qt-logo.png" align="left" width="32" height="32" border="0" /></td>
 
19
<td width="1">&nbsp;&nbsp;</td><td class="postheader" valign="center"><a href="index.html"><font color="#004faf">Home</font></a>&nbsp;&middot; <a href="classes.html"><font color="#004faf">All&nbsp;Classes</font></a>&nbsp;&middot; <a href="mainclasses.html"><font color="#004faf">Main&nbsp;Classes</font></a>&nbsp;&middot; <a href="annotated.html"><font color="#004faf">Annotated</font></a>&nbsp;&middot; <a href="groups.html"><font color="#004faf">Grouped&nbsp;Classes</font></a>&nbsp;&middot; <a href="functions.html"><font color="#004faf">Functions</font></a></td>
 
20
<td align="right" valign="top" width="230"><img src="images/trolltech-logo.png" align="right" width="203" height="32" border="0" /></td></tr></table><h1 align="center">QRadioButton Class Reference</h1>
 
21
<p>The QRadioButton widget provides a radio button with a text label. <a href="#details">More...</a></p>
 
22
<pre>#include &lt;QRadioButton&gt;</pre><p>Part of the <a href="qtgui.html">QtGui</a> module.</p>
 
23
<p>Inherits <a href="qabstractbutton.html">QAbstractButton</a>.</p>
 
24
<ul>
 
25
<li><a href="qradiobutton-members.html">List of all members, including inherited members</a></li>
 
26
<li><a href="qradiobutton-qt3.html">Qt 3 support members</a></li>
 
27
</ul>
 
28
<a name="public-functions"></a>
 
29
<h3>Public Functions</h3>
 
30
<ul>
 
31
<li><div class="fn"/><b><a href="qradiobutton.html#QRadioButton">QRadioButton</a></b> ( QWidget * <i>parent</i> = 0 )</li>
 
32
<li><div class="fn"/><b><a href="qradiobutton.html#QRadioButton-2">QRadioButton</a></b> ( const QString &amp; <i>text</i>, QWidget * <i>parent</i> = 0 )</li>
 
33
</ul>
 
34
<ul>
 
35
<li><div class="fn"/>17 public functions inherited from <a href="qabstractbutton.html#public-functions">QAbstractButton</a></li>
 
36
<li><div class="fn"/>183 public functions inherited from <a href="qwidget.html#public-functions">QWidget</a></li>
 
37
<li><div class="fn"/>28 public functions inherited from <a href="qobject.html#public-functions">QObject</a></li>
 
38
<li><div class="fn"/>10 public functions inherited from <a href="qpaintdevice.html#public-functions">QPaintDevice</a></li>
 
39
</ul>
 
40
<h3>Additional Inherited Members</h3>
 
41
<ul>
 
42
<li><div class="fn"/>9 properties inherited from <a href="qabstractbutton.html#properties">QAbstractButton</a></li>
 
43
<li><div class="fn"/>52 properties inherited from <a href="qwidget.html#properties">QWidget</a></li>
 
44
<li><div class="fn"/>1 property inherited from <a href="qobject.html#properties">QObject</a></li>
 
45
<li><div class="fn"/>5 public slots inherited from <a href="qabstractbutton.html#public-slots">QAbstractButton</a></li>
 
46
<li><div class="fn"/>17 public slots inherited from <a href="qwidget.html#public-slots">QWidget</a></li>
 
47
<li><div class="fn"/>1 public slot inherited from <a href="qobject.html#public-slots">QObject</a></li>
 
48
<li><div class="fn"/>4 signals inherited from <a href="qabstractbutton.html#signals">QAbstractButton</a></li>
 
49
<li><div class="fn"/>1 signal inherited from <a href="qwidget.html#signals">QWidget</a></li>
 
50
<li><div class="fn"/>1 signal inherited from <a href="qobject.html#signals">QObject</a></li>
 
51
<li><div class="fn"/>4 static public members inherited from <a href="qwidget.html#static-public-members">QWidget</a></li>
 
52
<li><div class="fn"/>4 static public members inherited from <a href="qobject.html#static-public-members">QObject</a></li>
 
53
<li><div class="fn"/>3 protected functions inherited from <a href="qabstractbutton.html#protected-functions">QAbstractButton</a></li>
 
54
<li><div class="fn"/>39 protected functions inherited from <a href="qwidget.html#protected-functions">QWidget</a></li>
 
55
<li><div class="fn"/>7 protected functions inherited from <a href="qobject.html#protected-functions">QObject</a></li>
 
56
</ul>
 
57
<a name="details"></a>
 
58
<hr />
 
59
<h2>Detailed Description</h2>
 
60
<p>The QRadioButton widget provides a radio button with a text label.</p>
 
61
<p>A QRadioButton is an option button that can be switched on (checked) or off (unchecked). Radio buttons typically present the user with a &quot;one of many&quot; choice. In a group of radio buttons only one radio button at a time can be checked; if the user selects another button, the previously selected button is switched off.</p>
 
62
<p>Radio buttons are <a href="qabstractbutton.html#autoExclusive-prop">autoExclusive</a> by default. If auto-exclusive is enabled, radio buttons that belong to the same parent widget behave as if they were part of the same exclusive button group. If you need multiple exclusive button groups for radio buttons that belong to the same parent widget, put them into a <a href="qbuttongroup.html">QButtonGroup</a>.</p>
 
63
<p>Whenever a button is switched on or off it emits the <a href="qabstractbutton.html#toggled">toggled</a>() signal. Connect to this signal if you want to trigger an action each time the button changes state. Otherwise, use <a href="qabstractbutton.html#checked-prop">isChecked</a>() to see if a particular button is selected.</p>
 
64
<p>Just like <a href="qpushbutton.html">QPushButton</a>, a radio button displays text, and optionally a small icon. The text can be set in the constructor or with <a href="qabstractbutton.html#text-prop">setText</a>(); the icon is set with <a href="qabstractbutton.html#icon-prop">setIcon</a>().</p>
 
65
<p>Important inherited members: <a href="qabstractbutton.html#text-prop">text</a>(), <a href="qabstractbutton.html#text-prop">setText</a>(), <a href="qabstractbutton.html#text-prop">text</a>(), <a href="qabstractbutton.html#down-prop">setDown</a>(), <a href="qabstractbutton.html#down-prop">isDown</a>(), <a href="qabstractbutton.html#autoRepeat-prop">autoRepeat</a>(), <a href="qabstractbutton.html#group">group</a>(), <a href="qabstractbutton.html#autoRepeat-prop">setAutoRepeat</a>(), <a href="qabstractbutton.html#toggle">toggle</a>(), <a href="qabstractbutton.html#pressed">pressed</a>(), <a href="qabstractbutton.html#released">released</a>(), <a href="qabstractbutton.html#clicked">clicked</a>(), and <a href="qabstractbutton.html#toggled">toggled</a>().</p>
 
66
<p><img src="images/macintosh-radiobutton.png" alt="Screenshot in Macintosh style" /> <img src="images/windows-radiobutton.png" alt="Screenshot in Windows style" /></p>
 
67
<p>See also <a href="qpushbutton.html">QPushButton</a>, <a href="qtoolbutton.html">QToolButton</a>, <a href="qcheckbox.html">QCheckBox</a>, and <a href="guibooks.html#fowler">GUI Design Handbook: Radio Button</a>.</p>
 
68
<hr />
 
69
<h2>Member Function Documentation</h2>
 
70
<h3 class="fn"><a name="QRadioButton"></a>QRadioButton::QRadioButton ( <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3>
 
71
<p>Constructs a radio button with the given <i>parent</i>, but with no text or pixmap.</p>
 
72
<p>The <i>parent</i> argument is passed on to the <a href="qabstractbutton.html">QAbstractButton</a> constructor.</p>
 
73
<h3 class="fn"><a name="QRadioButton-2"></a>QRadioButton::QRadioButton ( const <a href="qstring.html">QString</a> &amp; <i>text</i>, <a href="qwidget.html">QWidget</a> * <i>parent</i> = 0 )</h3>
 
74
<p>Constructs a radio button with the given <i>parent</i> and a <i>text</i> string.</p>
 
75
<p>The <i>parent</i> argument is passed on to the <a href="qabstractbutton.html">QAbstractButton</a> constructor.</p>
 
76
<p /><address><hr /><div align="center">
 
77
<table width="100%" cellspacing="0" border="0"><tr class="address">
 
78
<td width="30%">Copyright &copy; 2005 <a href="trolltech.html">Trolltech</a></td>
 
79
<td width="40%" align="center"><a href="trademarks.html">Trademarks</a></td>
 
80
<td width="30%" align="right"><div align="right">Qt 4.0.0</div></td>
 
81
</tr></table></div></address></body>
 
82
</html>