[Qt-interest] QSettings (ini) Write and Load actions

Martin Hofius Martin at hofius-online.com
Mon May 18 13:19:39 CEST 2009


Hello,

Am Montag, 18. Mai 2009 schrieb Matthias Pospiech:
> I am using QSettings to write and load Applikation Data (mainly
> calibration files) to an ini file.
>
> If construct the QSettings object each time I want to write or read
> from/to the file. The filesize in total is 4 MB.
> However I experience that each access takes very long.
what kind of access? Creating the object or getting data from the created 
object?
>
> So my question is at which point the saving or reading takes place? At
> the deconstruction of the QSettings object?
> I am asking, because I am thinking of creating a global QSettings object
> which is only deconstructed at quitting of the application.
I doubt if creating ini files with a settings object is a performant way store 
thousands of data sets (regarding your file size?). I suggest you to use 
either a really flat data file or a database format (maybe sqlite)...

Greetings
Martin
>
> Matthias
> _______________________________________________
> Qt-interest mailing list
> Qt-interest at trolltech.com
> http://lists.trolltech.com/mailman/listinfo/qt-interest





More information about the Qt-interest-old mailing list