[Interest] Write QSettings to a QString in INI format

Thiago Macieira thiago.macieira at intel.com
Sat Oct 26 17:41:03 CEST 2019

On Saturday, 26 October 2019 02:43:48 PDT Konrad Rosenbaum wrote:
> > So I if all the above is correct, and there is no way to write an INI
> > formatted string to memory, and given the fact that I really don't want a
> > file in the first place, I decided to look at writing the settings out to
> > a QTemporaryFile, then just reading that data back in as a string, and
> > then let the QTemporaryFile go out of scope and clean itself up. But
> > according to the following test code, QSettings does not seem to play
> > nicely with QTemporaryFile:
> This is basically the way to go.

I suggest QTemporaryDir instead.

Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel System Software Products

More information about the Interest mailing list