[Interest] Write QSettings to a QString in INI format

d3fault d3faultdotxbe at gmail.com
Sat Oct 26 15:50:18 CEST 2019


On 10/24/19, Murphy, Sean <smurphy at walbro.com> wrote:
> I'd like to be able to have QSettings write out my settings to an INI file
> format, but I'd like to avoid writing it to an actual file, instead just
> writing it to "something" in memory (for example, a QString, QByteArray,
> QBuffer, etc.).
>

If "something in memory" is your requirement, you could give QSettings
a filePath on a tmpfs. Then after the QSettings object has gone out of
scope, open that filePath with QFile.

d3fault


More information about the Interest mailing list