The QButtonGroup widget organizes QButton widgets in a group. (details) (complete member list)
#include <qbttngrp.h>
Inherits QGroupBox.
A button group widget makes it easier to deal with groups of buttons. A button in a button group can be associated with a unique identifer. The button group emits a clicked() signal with this identifier when the button is clicked.
A button group which contains radio buttons (QRadioButton) will switch off all radio buttons except the one that was clicked.
There are two standard ways of using a button group:
Constructs a button group with no title.
The parent and name arguments are passed to the QWidget constructor.
Constructs a button group with a title.
The parent and name arguments are passed to the QWidget constructor.
Destroys the button group and its child widgets.
.
Inserts a button with the identifier id into the button group.
If id is -1, then the button will get an identifier (number of buttons in the group). Inserting several buttons with id = -1 will assign the identifers 0, 1, 2, etc.
Removes a button from the button group.
This file is part of the Qt toolkit, copyright 1995 Troll Tech, all rights reserved.
It was generated from the following files: