QT - uncheck

Guys, please let me know how to uncheck the box using QT C ++.

+5
source share
4 answers

use

QCheckBox::setChecked(false);
+11
source

You can use the setChecked () method from QAbstractButton.

QCheckButton b;
b.setChecked( false ); // Uncheck it

Alternatively, you can use the setCheckState () method setCheckState () from QCheckButton. This gives you the option to "partially disable" it.

QCheckButton b;
b.setCheckState( Qt::Unchecked );
+9
source

,

QCheckButton chkbox; chkbox.setChecked(false);

0

ui , , .

ui-> actionDraw_Polygon-> setChecked (false);

0
source

All Articles