Dear visitor, welcome to QtForum.org. If this is your first visit here, please read the Help. It explains how this page works. You must be registered before you can use all the page's features. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.
This post has been edited 1 times, last edit by "tavi" (Apr 25th 2008, 7:35am)
|
|
Source code |
1 2 3 4 5 6 7 8 9 10 11 12 13 |
// find all QRadioButton's
QList<QRadioButton*> rButtons = this->findChildren<QRadioButton*>();
//
int i;
for (i = 0; i < rButtons.count(); ++i)
{
// find selected
if( rButtons.at(i)->isChecked())
{
// analyze rButtons.at(i) and it's parent.
// write required properties anywhere you want.
}
}
|

This post has been edited 3 times, last edit by "Messenger" (Apr 28th 2008, 3:25pm)
This post has been edited 1 times, last edit by "Messenger" (May 2nd 2008, 10:13am)
This post has been edited 1 times, last edit by "tavi" (May 5th 2008, 9:46am)
This post has been edited 1 times, last edit by "tavi" (May 5th 2008, 12:34pm)
This post has been edited 3 times, last edit by "Messenger" (May 5th 2008, 3:16pm)