Qt-interest Archive, May 2008
RE: Save status of multiple widgets
Message 1 in thread
Hi,
Review the class QSettings, I used to save the property of my widgets in a *.ini file.
regards
David> Subject: RE: Save status of multiple widgets> Date: Tue, 22 Apr 2008 15:38:53 +0300> From: Eero.Taipale@xxxxxxxxxxxx> To: qt-interest@xxxxxxxxxxxxx> > >I have an application with many widgets like check boxes, > >radio buttons, selection screens and I'm looking for > >a function in Qt like writesettings()/readsettings() > >that are able to save the status of this widgets.> > David,> > I have the same question; this far the best solution> I have found is to load .ui from a file, with a property> tagged in each QWidget. The property tells where to> load and save the data in the widget.> > Then I just recursively go through the widgets and> see if it has my property, and do the write/read> operation for the control.> > -- > Eero Taipale> > --> To unsubscribe - send a mail to qt-interest-request@xxxxxxxxxxxxx with "unsubscribe" in the subject or the body.> List archive and information: http://lists.trolltech.com/qt-interest/>
_________________________________________________________________
MSN Video.
http://video.msn.com/?mkt=es-es