PDA

View Full Version : Keep CheckBoxs' value be kept into the .conf file - QSettings Problem



hakermania
27th August 2010, 01:18
Well, I've stored tha values of lineedits, spinboxes and ComboBoxes into the .conf file with the help of QSettings (and settings.sync of course) But i've never kept the value of a checkbox and Idk how to do it becauz the setCheckState doesn't work at all.
Please tell me what to place at the constructor and at the Close Event!

tbscope
27th August 2010, 05:37
The documentation isn't clear on this. You need to look into the base class to find the functions you want:

bool isChecked()
and
void setChecked(bool)