[Qt-interest] QRadioButton events handling best practice
Alex Ivasyuv
industral at gmail.com
Tue Nov 2 16:51:18 CET 2010
On 11/02/2010 05:40 PM, Andre Somers wrote:
> Op 2-11-2010 16:33, Alex Ivasyuv schreef:
>> Hi,
>>
>> I have for example, 3 radio buttons. And on any click on it, I need to
>> know which one was clicked.
>> As I understand, I have to create 3 radiobutton objects, and connect
>> them (3 items) with signal& slot.
>> Then handle it's clicking...
>>
>> What is the best practice to do it with Qt, maybe there are present
>> already some mechanisms to do it, e.g.
>> add radiobuttons to group and connect group on click, or smth like that...
>>
>> Thanks in advance,
>>
> Look into QButtonGroup and/or QSignalMapper.
Thanks, exactly what I looked for.
> André
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
--
Best regards,
Alex Ivasyuv
Senior WebUI Software Engineer
ReelRoles, Inc.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20101102/3fdcd1d0/attachment.html
More information about the Qt-interest-old
mailing list