Manoj Rajagopalan schreef:
Vincent van Ravesteijn - TNW wrote:
* I think we should set the checkbox to the default of case insensitive
sorting. Thus it has to be set to checked in the constructor (unless you
change it to the case sensitive sorting checkbox).
I'm a little confused between QCheckBox::setChecked() and
QCheckBox::setCheckedState(). Are they the exact same thing? I'd like
to set the box to checked but I don't want to emit signals. This can
be achieved by flanking the setChecked...() call with blockSignals()
but I'm wondering if one of the above is a more elegant one-line
solution.
thanks,
Manoj
I think you can just use QCheckBox::setChecked() if you only want to
check or uncheck the checkbox. According to the documentation of
setCheckedState, this is only needed when you want to be able to set the
state to 'partially checked', but I do not think you'll need this.
Vincent