Question

I have a Qt (4.8.5) based application running on OS X 10.9. The app uses QSettings class specifying app name and company. Plist file is created by QSetttings under:

~/Library/Preferences/com.company_name.app_name.plist

The app works pretty fine in terms of saving/restoring preferences. Then I quit the app, delete *.plist file, run the app again and voila - it restored its preferences! Based on what what file? Hot to delete it?

I was unable to find the answer in the Qt doc for QSettings class.

Était-ce utile?

La solution

In 10.9 (and higher) .plist files are being cached. So once you have deleted a .plist file, the cache must be refreshed. Either log out or execute the following command in Terminal:

killall -u yourusername cfprefsd
Licencié sous: CC-BY-SA avec attribution
Non affilié à StackOverflow
scroll top