[Interest] Best practices for settings
Tim Hoffmann
thoffmann at texstudio.org
Sun Nov 17 14:53:05 CET 2013
Hi all,
Are there any best practices for working with QSettings in larger
projects with many settings?
In particular:
- How do you efficiently synchronize settings with widgets in an options
dialog.
- How do you efficiently detect changes made in an option dialog. (I
have some options that need significant calculations after changing.
These should only be triggered if the corresponding setting was actually
changed.)
- How do you access the settings in the source code? Always casting the
QVariants seems a bit tedious but the alternative would be to have
additional local variables (or members) for the values which you would
have to maintain additionally.
Thanks in advance.
Tim
More information about the Interest
mailing list