[Qt-interest] problem in QRadioButton

chandrasekar wagmare sekarwagmare at gmail.com
Mon Mar 16 10:30:36 CET 2009


thanks it worked ... and it works without making ctrl.setAutoExclusive(
false );
del.setAutoExclusive( false );  values ....  its working for radio button
2009/3/16 Tony Rietwyk <tony.rietwyk at rightsoft.com.au>

>  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.
>
>
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest
>
>


-- 
CHANDRU
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20090316/18dbd23c/attachment.html 


More information about the Qt-interest-old mailing list