[Qt-interest] problem in QRadioButton
Tony Rietwyk
tony.rietwyk at rightsoft.com.au
Mon Mar 16 08:56:07 CET 2009
Chandru wrote:
hi friends,
i am having three radioButtons say "alt", "ctrl" , "del" and the
default is alt "checked" ..
when the user try clicks the button i want to uncheck the alt so i set
alt.setChecked(false)
but it is not working why ... and another thing is i disabled the
remaining two radioButton
please help
--
CHANDRU
If you want to clear the selected radio button, then you need:
alt.setAutoExclusive( false );
alt.setChecked( false );
alt.setAutoExclusive( true );
Note: I would expect these to be checkboxes, not radios! If you insist on
the radios, maybe you just need to switch off autoExclusive on all three of
them.
Regards,
Tony.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090316/d6dedc37/attachment.html
More information about the Qt-interest-old
mailing list