[Qt-interest] Saving the state of all your widgets.
Scott Aron Bloom
Scott.Bloom at sabgroup.com
Wed Mar 4 19:23:33 CET 2009
> -----Original Message-----
> From: qt-interest-bounces at trolltech.com [mailto:qt-interest-
> bounces at trolltech.com] On Behalf Of Knapp
> Sent: Wednesday, March 04, 2009 10:04 AM
> To: qt-interest at trolltech.com
> Subject: [Qt-interest] Saving the state of all your widgets.
>
> Hello, I have a program with a bunch of spinboxes and lineEdits etc. I
> want to have the person click new or save and have the state of all of
> them reset, loaded or saved. Is there and easy way to do this or must
> I write a method to grab the data from each one, turn it into a var
> and then save it?
>
> I was thinking maybe I should make each widget receive a signal and
> then transmit that data and have a slot gather it all up. Maybe that
> is to crazy though.
>
> Thanks for any ideas.
>
Take a look at QWizard and QWizardPage which has a very abstract
methodology for getting and setting the values of widgets.
Scott
More information about the Qt-interest-old
mailing list