Hi, Ihave my app with a Qdialog design from QTDesigner. Inside myDialog I have put many spinbox. When I invoke myDialog and check some spinbox, I'd like the dialog remember the spinbox checked the next time! Does QT provide to this? Thanks
Hi, Ihave my app with a Qdialog design from QTDesigner. Inside myDialog I have put many spinbox. When I invoke myDialog and check some spinbox, I'd like the dialog remember the spinbox checked the next time! Does QT provide to this? Thanks
Regards
What does "checked spinbox" mean? Did you mean either of:
- QSpinBox, which has focus
- QCheckBox, whose checkState() == Qt::Checked
the second choice...
Regards
Ok. Now the other question: what do you mean by saying
Do you mean the next time your application will run or the next time myDialog will be popped up?Originally Posted by mickey
In the first case you should save checkbox states before finishing your application and restore them on application startup. Try QSettings.
In the later case you should preserve the first instance of your dialog after the first creation of it.
Bookmarks