The QButtonGroup organizes QButton widgets in a group for managing buttons that belong together. (details) (complete member list)
#include <qbttngrp.h>
Inherits QGroupBox.
The QButtonGroup class contains an internal list of QButton widgets, and the contained buttons do not have to be child widgets of the button group.
There are two basic ways of using a button group:
The QButtonGroup is especially useful for radio buttons (QRadioButton). When one radiobutton in the group is switched on, all other radio buttons will be automatically switched off.
All buttons that are inserted into the button group have an (optional) identifier. The button group connects the QButton::clicked() signal to buttonClicked() slot. When a button is clicked, the button group receives the signal and emits an clicked() signal, containing the button identifier.
Constructs a button group with a parent widget and a widget name.
Destroys the button group and all 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: