Qtopia Home - Classes - Hierachy - Annotated - Functions - Licenses - Reference |
|
The QActionGroup class combines actions to a group. More...
#include <qaction.h>
Inherits QAction.
The QActionGroup class combines actions to a group.
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.
QActionGroup is an action by its own and thus can be treated as such. Standard action functions like addTo(), removeFrom() and setEnabled() 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.
Toggle action handling is controlled with the setExclusive() 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 QRadioButton). An exclusive group emits the signal selected() whenever the current child action changes.
If exclusive is TRUE, any toggle action that is a member of this group is toggled off by another action being toggled on.
It is not necessary to manually insert actions that have this action group as their parent object.
See also setExclusive().
This signal is emitted in exclusive groups when the current toggle action changes.
See also setExclusive().
In an exclusive group, any toggle action that is a member of this group is toggled off by another action being toggled on.
See also isExclusive().
This file is part of the Qtopia platform, copyright © 1995-2005 Trolltech, all rights reserved.
| Copyright © 2005 Trolltech | Trademarks | Qtopia version 2.2.0
|