Results 1 to 3 of 3

Thread: Check / uncheck the radio button related to QtVariantProperty

  1. #1
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Question Check / uncheck the radio button related to QtVariantProperty

    Hi all,

    I have a QtVariantProperty inside a QtTreePropertyBrowser that shows a radio button. I want to change the state 'checked' or 'unchecked' programatically.

    I have tried with the next code:
    Qt Code:
    1. qtVariantProperty->SetChecked(true);
    To copy to clipboard, switch view to plain text mode 

    But the state does not change.

  2. The following user says thank you to qt_developer for this useful post:


  3. #2
    Join Date
    Sep 2011
    Posts
    1,241
    Thanks
    3
    Thanked 127 Times in 126 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Check / uncheck the radio button related to QtVariantProperty

    I didn't know there were any Qt member methods starting with capital letter?!
    I also can't see setChecked here http://doc.qt.digia.com/solutions/4/...y-members.html. Does your code compile?

    Did you look at the manual for it http://doc.qt.digia.com/solutions/4/...property.html?
    If you have a problem, CUT and PASTE your code. Do not retype or simplify it. Give a COMPLETE and COMPILABLE example of your problem. Otherwise we are all guessing the problem from a fabrication where relevant details are often missing.

  4. The following user says thank you to amleto for this useful post:


  5. #3
    Join Date
    May 2012
    Posts
    99
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: Check / uncheck the radio button related to QtVariantProperty

    Maybe I have a modified version of QtVariantProperty Class.

    Anyway, how can you change the state of radio button related to QtVariantProperty? I haven't see nothing in the manual for QtVariantProperty http://doc.qt.digia.com/solutions/4/...property.html

  6. The following user says thank you to qt_developer for this useful post:


Similar Threads

  1. how to check radio button
    By tommy in forum Newbie
    Replies: 2
    Last Post: 24th February 2012, 02:50
  2. Replies: 5
    Last Post: 7th July 2010, 04:58
  3. Checkboxes: check and uncheck
    By 3nc31 in forum Qt Programming
    Replies: 2
    Last Post: 5th June 2008, 21:26
  4. Check and Uncheck on a Dir Tree?
    By vishal.chauhan in forum Qt Programming
    Replies: 2
    Last Post: 3rd July 2007, 11:55
  5. QListWidgetItem check/uncheck
    By Arthur in forum Qt Programming
    Replies: 6
    Last Post: 12th May 2006, 10:19

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.