Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 4

Qt-interest Archive, April 2008
Save status of multiple widgets


Message 1 in thread

Hallo,
 
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.
 
Does any body knows about a function for this, or if I have to adapt in some way the writesettings() / readsettings() routine to save the status of this widgets and not just the geometries of the mainwindow.
 
thanks 
 
David
_________________________________________________________________
Tecnología, moda, motor, viajes,…suscríbete a nuestros boletines para estar siempre a la última
Guapos y guapas, clips musicales y estrenos de cine. 

Message 2 in thread

>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.

-- 
 [ signature omitted ]