TheMeaningfulEngineer
TheMeaningfulEngineer

Reputation: 16359

Group GUI checkboxes (AbstrackButtons) together and set properties for all of them

I have several radio buttons and checkboxes that all have to be grayed out.

Is their a way to group them and then set the attributes for all of them on the same place?

Example

The QRadioButton and QCheckBox are added to the groupBox (QGroupBox) through the gui designer. Then do something like this to set all the attributes:

ui->groupBox->setChilrenCheckable()

Upvotes: 0

Views: 63

Answers (1)

thuga
thuga

Reputation: 12931

You can disable the groupbox:

ui->groupBox->setEnabled(false);

Upvotes: 1

Related Questions