PDA

View Full Version : save last configuratioon



panyang
21st February 2011, 03:24
hey, i have a problem.. here's the scene..i have two buttons: enable and disable button for my project..i want to enable the flash drive blocker so i clicked the enable button, then the button became disabled or not visible, then i closed it. after sometime i open again the dialog, but the enable button was visible.. how can i store the phase of the button when i close the program?

ChrisW67
21st February 2011, 04:59
QSettings is the usual method. You can save a simple setting like this each time it changes or, for more complex states, you should look in Assistant under "Session Management"