Results 1 to 6 of 6

Thread: How to uncheck QRadioButton programming(ly)

  1. #1
    Join Date
    Aug 2009
    Location
    Saudi Arabia - Buraidah
    Posts
    48
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to uncheck QRadioButton programming(ly)

    Hi,

    I have tried to uncheck a QRadioButton but I couldn't I used setChecked(flase) but no use.

    Is there a way to uncheck it so a group of QRadioButton(s) became unchecked all of them.


    Thanks
    Last edited by MIH1406; 22nd September 2009 at 01:41.

  2. #2
    Join Date
    Dec 2008
    Location
    TaganrogNativelandChehov,Russia
    Posts
    64
    Thanks
    1
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to uncheck QRadioButton programming(ly)

    see
    bool autoExclusive () const
    void setAutoExclusive ( bool )
    east or west home is best

  3. #3
    Join Date
    Aug 2009
    Location
    Saudi Arabia - Buraidah
    Posts
    48
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to uncheck QRadioButton programming(ly)

    Thank you but this is not the soluation I am looking for.

    I have a group of QRadioButton the user shoul chose one of them. And I have a QPushButton named "Reset" this QPushButton shoud reset the group of QRadioButton to uncheck all of them so there is no one checked.

    Thanks in advanced

  4. #4
    Join Date
    Dec 2008
    Location
    TaganrogNativelandChehov,Russia
    Posts
    64
    Thanks
    1
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to uncheck QRadioButton programming(ly)

    may be i do not understand you.
    exclusive : bool

    This property holds whether the button group is exclusive.

    If this property is true then only one button in the group can be checked at any given time. The user can click on any button to check it, and that button will replace the existing one as the checked button in the group.

    In an exclusive group, the user cannot uncheck the currently checked button by clicking on it; instead, another button in the group must be clicked to set the new checked button for that group.

    By default, this property is true.

    Access functions:

    bool exclusive () const
    void setExclusive ( bool )
    east or west home is best

  5. The following user says thank you to kwisp for this useful post:

    MIH1406 (24th September 2009)

  6. #5
    Join Date
    Dec 2008
    Location
    TaganrogNativelandChehov,Russia
    Posts
    64
    Thanks
    1
    Thanked 8 Times in 7 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to uncheck QRadioButton programming(ly)

    example:
    sorry for not optimized
    Attached Files Attached Files
    east or west home is best

  7. The following user says thank you to kwisp for this useful post:

    MIH1406 (24th September 2009)

  8. #6
    Join Date
    Aug 2009
    Location
    Saudi Arabia - Buraidah
    Posts
    48
    Thanks
    42
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: How to uncheck QRadioButton programming(ly)

    Yes this is what I am looking for

    Thank you,
    Mohammad

Similar Threads

  1. QRadioButton and QDataWidgetMapper
    By SimonSchmeisser in forum Qt Programming
    Replies: 3
    Last Post: 24th June 2015, 15:28
  2. Unchecking QRadioButton
    By gruszczy in forum Qt Programming
    Replies: 3
    Last Post: 26th February 2008, 00:55

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.