@StudentScripter
You can put pointers to widgets into arrays/lists/maps as you please and use those for iterating through them etc.
You can't get Designer to do that for you, so you have to manually populate the arrays/lists from the ui->... instance variables yourself (after setupUi()).
You can also visit all widgets of a given type, without setting anything up, via topWidget->findChildren<QLineEdit *>().
You can "group" widgets at design-time by e.g. creating a "holding" container QWidget or QFrame or QGroupBox if that helps. For buttons there is also QButtonGroup.