#include <Libs/Widgets/ctkButtonGroup.h>
|
void | setChecked (QAbstractButton *button, bool checked=true) |
| Check or uncheck the button. More...
|
|
|
QScopedPointer< ctkButtonGroupPrivate > | d_ptr |
|
ctkButtonGroup is a QButtonGroup with a different behavior when exclusive. An exclusive ctkButtonGroup switches off the previously checked button when a new button is checked. ctkButtonGroup doesn't enforce that 1 button is checked at all time (contrary to QButtonGroup). If a button is checked it is possible to uncheck it without having to check another button. Use ctkButtonGroup the same way than QButtonGroup.
buttonGroup->addButton(button1);
buttonGroup->addButton(button2);
By default ctkButtonGroup is exclusive.
- See also
- QButtonGroup
Definition at line 49 of file ctkButtonGroup.h.
◆ ctkButtonGroup()
ctkButtonGroup::ctkButtonGroup |
( |
QObject * |
_parent = 0 | ) |
|
|
explicit |
◆ ~ctkButtonGroup()
virtual ctkButtonGroup::~ctkButtonGroup |
( |
| ) |
|
|
virtual |
◆ onButtonClicked
void ctkButtonGroup::onButtonClicked |
( |
int |
button | ) |
|
|
protectedslot |
◆ onButtonPressed
void ctkButtonGroup::onButtonPressed |
( |
int |
button | ) |
|
|
protectedslot |
◆ setChecked
void ctkButtonGroup::setChecked |
( |
QAbstractButton * |
button, |
|
|
bool |
checked = true |
|
) |
| |
|
slot |
Check or uncheck the button.
◆ d_ptr
QScopedPointer<ctkButtonGroupPrivate> ctkButtonGroup::d_ptr |
|
protected |
The documentation for this class was generated from the following file: