[Qt-interest] QSettings (ini) Write and Load actions
Andreas Pakulat
apaku at gmx.de
Mon May 18 12:58:54 CEST 2009
On 18.05.09 12:46:04, Matthias Pospiech wrote:
> 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.
>
> So my question is at which point the saving or reading takes place? At
> the deconstruction of the QSettings object?
Writing takes place when the destructor is called, reading in the
constructor yes. However Qt supplies the sync() method on the object to
manually sync the object (i.e. write any changes to disk and read changes
from disk) with the disk storage.
Andreas
--
You have a strong desire for a home and your family interests come first.
More information about the Qt-interest-old
mailing list