Well, you could use QObject::findChildren() on each group box but you would then either need to store the groupbox pointers or find them first.

Storing the pointers to the elements you intend to interact with, in your case the radio buttons, is much cleaner.

Cheers,
_