[Digikam-devel] state saving and restoring for GUI elements

Marcel Wiesweg marcel.wiesweg at gmx.de
Fri Dec 11 16:40:22 GMT 2009


> 
> So, any more thoughts on how to do this the best way?

I have the feeling that it's good to give KConfigGroups and do it outside of 
the constructor/destructor, though the latter will create a bit of extra work.

A common base class can be difficult because there may be widgets not 
inheriting from QWidget but a specialized subclass, and then you can't use 
this code. Not sure about this. Is there really so much code to share for 
generic QWidgets? Maybe it's easier to collect utility code in common place 
for reuse. You will see that better when starting to work on it.

> 
> Johannes
> 




More information about the Digikam-devel mailing list