[Interest] Simple doubt on file i/o

André Hartmann andre.hartmann at iseg-hv.de
Thu Jun 27 10:26:55 CEST 2013


Hello,

> QSettings uses specific locations for storing its contents. I don't
> think one can specify which file to use to QSettings.

Sure you can. Just use QSettings::IniFormat and see here:

http://doc.qt.digia.com/4.6/qsettings.html#QSettings-4

The only problem I can see is, if you want to store and read non-ASCII 
data. But if I remember correctly, you can also set the file encoding 
with setIniCodec() (since Qt 4.5)

Regards,
André

>
> My application already uses QSettings for storing app wide settings.
>
> The data I plan to store in the file is sensitive and I'd like to store
> it in a specific location only (like an encrypted partition). Another
> way is to store the data after encrypting it but I'm not doing that
> right now as I don't have a good management facility on my (embedded)
> platform.
>
> -mandeep
>
>
>
>
>     André
>
>     --
>     You like Qt?
>     I am looking for collegues to join me at i-Optics!
>
>     _______________________________________________
>     Interest mailing list
>     Interest at qt-project.org <mailto:Interest at qt-project.org>
>     http://lists.qt-project.org/mailman/listinfo/interest
>
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>



More information about the Interest mailing list