Hi All,
When using QSettings to write a value into the Windows registry you can do:
QSettings settings
("HKEY_CURRENT_USER\\Software\\MySoftware\\Test",
settings.setValue("AValue", "Some String");
QSettings settings("HKEY_CURRENT_USER\\Software\\MySoftware\\Test",
QSettings::NativeFormat);
settings.setValue("AValue", "Some String");
To copy to clipboard, switch view to plain text mode
and all is good.
I have a need to store a string that begins with "@". QSettings, which uses "@" as a marker for encoding serialised types, escapes the "@" and stores "@@..." This is no problem if QSettings is the only reader of this value because it un-escapes on read. In my case, the COM subsystem needs to read the value and see only a single "@". Is there a way to suppress the QSettings behaviour or will I have to revert to raw Windows API for this one value?
Bookmarks