Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
[Solved] How can I uncheck the qcheckbox?
-
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?
-
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
-
You can also use "setChecked":http://doc.qt.nokia.com/4.6/qabstractbutton.html#checked-propset from QAbstractButton.
-
thank you both