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?
Thanks!
-
Well, maybe, this is the answer:
http://qt-project.org/doc/qt-5/qsettings.html#platform-specific-notes
-
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:UserScope $HOME/.config
SystemScope /etc/xdg -
http://qt-project.org/forums/viewthread/34409/#149812
[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]