PDA

View Full Version : Storing widget state



maverick_pol
10th April 2008, 00:53
Hi guys,

Is there a cache/history class that can store widget state(and its children states)? I need to open a dialog, the user can enter some data, change checkbox state, choose some options, but when "cancel" is pushed the state of the widget should be the same as when shown(before editing). Is there any features/class in Qt that could help achieve that?

Thanks

kacper

wysota
10th April 2008, 10:29
Not really. I mean not out of the box, but it should be relatively easy to implement uch a thing. Thanks for the idea ;)

maverick_pol
10th April 2008, 10:46
Sounds useful and easy to implement. I will write it myself ok..

Kacper

wysota
10th April 2008, 10:48
Let's compare solutions afterwards :)

maverick_pol
10th April 2008, 10:55
Why not.
When I have the code, will write you or paste it here.

Kacper