[Solved] How can I uncheck the qcheckbox?
General and Desktop
4
Posts
3
Posters
4.7k
Views
1
Watching
-
wrote on 14 Apr 2011, 06:49 last edited by
hi,
I have created some checkboxes and when the user makes a choice and presses the button "ok", i want the checkboxes to be unchecked.
How can i do this?
-
wrote on 14 Apr 2011, 06:56 last edited by
You can use the "setCheckState":http://doc.qt.nokia.com/4.6/qcheckbox.html#setCheckState method on your QCheckBox objects, in the code called when your button is clicked
-
wrote on 14 Apr 2011, 07:25 last edited by
You can also use "setChecked":http://doc.qt.nokia.com/4.6/qabstractbutton.html#checked-propset from QAbstractButton.
-
wrote on 14 Apr 2011, 08:25 last edited by
thank you both
4/4