PDA

View Full Version : tristate



mickey
2nd April 2006, 16:08
HI, I need to set the semi-checked to a tristate checkBox but I don't know how;
with below I can retrieve if it is in a semi-checked state...but how set it? Thanks

if (multiCheckBox->state() == 1 ) //semi-checked

zlatko
3rd April 2006, 08:05
void QCheckBox::setTristate ( bool y = TRUE )

Lemming
3rd April 2006, 23:37
//Enables the tri-state for the checkbox
QCheckBox::setTristate( true );
//Sets the semi-checked state for the tri-state checkbox
QCheckBox::setCheckState( Qt::PartiallyChecked );


This should help

Milica
1st December 2014, 09:37
How can I use this with checkable QGroupBox ?