File: qactiongroup.html

package info (click to toggle)
qt-embedded 2.3.2-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 68,608 kB
  • ctags: 45,998
  • sloc: cpp: 276,654; ansic: 71,987; makefile: 29,074; sh: 12,305; yacc: 2,465; python: 1,863; perl: 481; lex: 480; xml: 68; lisp: 15
file content (115 lines) | stat: -rw-r--r-- 6,488 bytes parent folder | download
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
<!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 - QActionGroup 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>QActionGroup Class Reference</h1><br clear="all">
<p>
The QActionGroup class combines actions to a group.
<a href="#details">More...</a>
<p>
<code>#include &lt;<a href="qaction-h.html">qaction.h</a>&gt;</code>
<p>
Inherits <a href="qaction.html">QAction</a>.
<p><a href="qactiongroup-members.html">List of all member functions.</a>
<h2>Public Members</h2>
<ul>
<li><div class="fn"><a href="#05d8e0"><b>QActionGroup</b></a>(QWidget*parent, constchar*name=0, boolexclusive=TRUE)</div>
<li><div class="fn"><a href="#98c340"><b>~QActionGroup</b></a>()</div>
<li><div class="fn">void<a href="#584335"><b>setExclusive</b></a>(bool)</div>
<li><div class="fn">bool<a href="#44a842"><b>isExclusive</b></a>()const</div>
<li><div class="fn">void<a href="#2c3afa"><b>insert</b></a>(QAction*)</div>
</ul>
<h2>Signals</h2>
<ul>
<li><div class="fn">void<a href="#14ea92"><b>selected</b></a>(QAction*)</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>exclusive<td>isExclusive<td>setExclusive<td>&nbsp;
</table>
<hr><h2><a name="details"></a>Detailed Description</h2>
The QActionGroup class combines actions to a group.
<p>
An action group makes it easier to deal with groups of actions. It
allows to add, remove or activate its children with a single call
and provides radio semantics ("one of many" choice) for toggle
actions.
<p>QActionGroup is an action by its own and thus can be treated as
such. Standard action functions like <a href="#113ed9">addTo</a>(), <a href="#01e8fd">removeFrom</a>() and
<a href="#24497a">setEnabled</a>() are automatically performed on all members of the
group, i.e. for example that adding a group to a toolbar creates a
tool button for each child action.
<p>Toggle action handling is controlled with the <a href="#584335">setExclusive</a>() flag,
with the default being TRUE. An exclusive group switches off all
toggle actions except the one that was activated. This results in a
"one of many" choice similar to a group of radio buttons (see
<a href="qradiobutton.html">QRadioButton</a>). An exclusive group emits the signal <a href="#14ea92">selected</a>()
whenever the current child action changes.

<hr><h2>Member Function Documentation</h2>
<h3 class="fn"><a name="05d8e0"></a>QActionGroup::QActionGroup(<a href="qwidget.html">QWidget</a>*parent, constchar*name=0, boolexclusive=TRUE)</h3>
<p>Constructs an action group with parent <em>parent</em> and name <em>name.</em>
<p>If <em>exclusive</em> is TRUE, any toggle action that is a member of this
group is toggled off by another action being toggled on.
<h3 class="fn"><a name="98c340"></a>QActionGroup::~QActionGroup()</h3>
<p>Destroys the object and frees any allocated resources.
<h3 class="fn">bool<a name="113ed9"></a>QActionGroup::addTo(<a href="qwidget.html">QWidget</a>*w) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qaction.html#780f84">QAction.</a>
<h3 class="fn">void<a name="2c3afa"></a>QActionGroup::insert(<a href="qaction.html">QAction</a>*action)</h3>
<p>Inserts action <em>action</em> to the group.
<p>It is not necessary to manually insert actions that have this action
group as their parent object.
<h3 class="fn">bool<a name="44a842"></a>QActionGroup::isExclusive()const</h3>
<p>Returns TRUE if the action group is exclusive, otherwise FALSE.
<p>See also  <a href="#584335">setExclusive</a>().
<h3 class="fn">bool<a name="01e8fd"></a>QActionGroup::removeFrom(<a href="qwidget.html">QWidget</a>*w) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qaction.html#80c814">QAction.</a>
<h3 class="fn">void<a name="14ea92"></a>QActionGroup::selected(<a href="qaction.html">QAction</a>*) <code>[signal]</code></h3>
<p>This signal is emitted in exclusive groups when the current toggle
action changes.
<p>See also  <a href="#584335">setExclusive</a>().
<h3 class="fn">void<a name="24497a"></a>QActionGroup::setEnabled(boolenable) <code>[virtual]</code></h3>
<p>Reimplemented for internal reasons; the API is not affected.
<p>Reimplemented from <a href="qaction.html#a536b2">QAction.</a>
<h3 class="fn">void<a name="584335"></a>QActionGroup::setExclusive(boolenable)</h3>
<p>Sets the action group to be exclusive if <em>enable</em> is TRUE,
or to be non-exclusive if <em>enable</em> is FALSE.
<p>In an exclusive group, any toggle action that is a member of this
group is toggled off by another action being toggled on.
<p>See also  <a href="#44a842">isExclusive</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 &copy; 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>