gren15
20th March 2009, 16:03
I have a number of radio buttons inside a QGroupBox.
It looks something like this
--GroupBox----------------
| 0 - Radio Button 1 |
| 0 - Radio Button 2 |
| 0 - Radio Button 3 |
| 0 - Radio Button 4 |
| 0 - Radio Button 5 |
--------------------------
The radio buttons choices are exclusive, i.e. only one radio button can be selected at any given time.
I would like to know whether, from the QGroupBox, I can retrieve which radio button has been selected (index).
Rather then checking each radio button to see whether it has been checked or not.
Any suggestions or pointers will be appreciated.
Thanks
It looks something like this
--GroupBox----------------
| 0 - Radio Button 1 |
| 0 - Radio Button 2 |
| 0 - Radio Button 3 |
| 0 - Radio Button 4 |
| 0 - Radio Button 5 |
--------------------------
The radio buttons choices are exclusive, i.e. only one radio button can be selected at any given time.
I would like to know whether, from the QGroupBox, I can retrieve which radio button has been selected (index).
Rather then checking each radio button to see whether it has been checked or not.
Any suggestions or pointers will be appreciated.
Thanks