In my Qt5 program I'm working on multiple objects and it's taking a lot of time and code to disable or change state of 20 checkboxes. Is there any option to make a group of checkboxes (or any other objects) and perform commands on it with one line?
For instance:
QCheckBox b1, b2, b3, b4, b5;
QCheckBox_Group Box_1to5 = {b1, b2, b3, b4, b5};
ui->Box_1to5->setEnabled(false);
Is it possible?
Aucun commentaire:
Enregistrer un commentaire