[Interest] Simple doubt on file i/o

Mandeep Sandhu mandeepsandhu.chd at gmail.com
Thu Jun 27 11:04:04 CEST 2013


On Thu, Jun 27, 2013 at 1:56 PM, André Hartmann
<andre.hartmann at iseg-hv.de>wrote:

> 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)
>

Thanks André/René. I somehow missed this API in QSettings.

Regards,
-mandeep



>
> 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
> >
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20130627/a5ce211c/attachment.html>


More information about the Interest mailing list