[Qt-interest] QButtonGroup tutorial

sudhish kapoor kapoorsudhish at gmail.com
Thu May 19 12:29:51 CEST 2011


What you need to do is set up button with the button group id using

buttonGroup->setId(button1,1);

Then you can use the:
buttonGroup->checkedId()

to get the index of the checked Radio button.


On Thu, May 19, 2011 at 3:50 PM, <admin at mbnoimi.net> wrote:

>  Hi guy
>
> I've 20 QRadioButton in my widget so I read about QButtonGroup in Qt docs
> but I couldn't understand how can I get checked QRadioButton?
>
> Could you please give a tiny tutorial?
>
> PS
> I googled about this issue but I got nothing!
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-interest
>
>


-- 
Regards,
Sudhish Kapoor.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110519/23b1a763/attachment.html 


More information about the Qt-interest-old mailing list