[Qt-interest] QSettings (ini) Write and Load actions
Matthias Pospiech
matthias.pospiech at gmx.de
Mon May 18 16:57:30 CEST 2009
Scott Aron Bloom schrieb:
>
> You are completely misusing QSettings... And since you are backing
> yourself into a corner, and refusing to look at the best optiosn out
> there..
>
>
I know. Any usefull hint on implementing the same thing with a sql
database however without sql knowledge or
any other solution.
> Here is an option you may want to consider....
>
> Use a singleton for your QSettings, and access it via a reference..
>
> QSettings sSettings;
> QSettings & getSettings()
> {
> return sSettings;
> }
>
> And rather than creating/destroying it each time you need one value, use
> sync on a predetermined basis
>
>
I am currently working on such code.
Matthias
More information about the Qt-interest-old
mailing list