23 Q_PROPERTY(
bool exclusive READ exclusive WRITE setExclusive)
25 explicit QButtonGroup(QObject *parent =
nullptr);
28 void setExclusive(
bool);
29 bool exclusive()
const;
31 void addButton(QAbstractButton *,
int id = -1);
32 void removeButton(QAbstractButton *);
34 QList<QAbstractButton*> buttons()
const;
36 QAbstractButton * checkedButton()
const;
39 QAbstractButton *button(
int id)
const;
40 void setId(QAbstractButton *button,
int id);
41 int id(QAbstractButton *button)
const;
42 int checkedId()
const;
45 void buttonClicked(QAbstractButton *);
46 void buttonPressed(QAbstractButton *);
47 void buttonReleased(QAbstractButton *);
48 void buttonToggled(QAbstractButton *,
bool);
52 void idToggled(
int,
bool);
55 Q_DISABLE_COPY(QButtonGroup)
56 Q_DECLARE_PRIVATE(QButtonGroup)
57 friend class QAbstractButton;
58 friend class QAbstractButtonPrivate;