QSettings is reading cached values even when file doesn't exist?
I am using QSettings to store application preferences in ini format on mac, and am finding that the previously stored values are being read on application startup even after I delete the file in ~/Library/Preferences. Does QSettings cache it's values somewhere else on the system? What's going on here?
Well, maybe, this is the answer:
I wish it were that simple. According to that document it would either be in ~/Library/Preferences or ~/.config, but I have neither.
According to http://qt-project.org/doc/qt-5/qsettings.html#setPath
it can be either:
[quote author="David Stiel" date="1383855373"]Hi,
In 10.9 the .plist files are being cached ("see":http://hints.macworld.com/article.php?story=20130908042828630.
So once you have deletede the .plist the cache must be refreshed. Either log out or do "killall -u yourusername cfprefsd"[/quote]