Generated code cannot do that for you. You would have to code the ui yourself to have readily available arrays or lists with the widgets. However, there is another approach:
foreach
(QGroupBox *box, findChildren<QGroupBox
*>
()) box->setEnabled(true);
foreach
(QLabel *label, findChildren<QLabel
*>
()) label->setText("some text");
foreach (QGroupBox *box, findChildren<QGroupBox*>())
box->setEnabled(true);
foreach (QLabel *label, findChildren<QLabel *>())
label->setText("some text");
To copy to clipboard, switch view to plain text mode
You might need to filter a bit more though.
Bookmarks