PDA

View Full Version : Check / uncheck the radio button related to QtVariantProperty



qt_developer
6th May 2013, 11:25
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:


qtVariantProperty->SetChecked(true);


But the state does not change.

amleto
6th May 2013, 11:51
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/qtpropertybrowser/qtvariantproperty-members.html. Does your code compile?

Did you look at the manual for it http://doc.qt.digia.com/solutions/4/qtpropertybrowser/qtvariantproperty.html?

qt_developer
6th May 2013, 12:17
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