PDA

View Full Version : OSX QSettings IniFormat SystemScope saving inside the bundle



JoZCaVaLLo
26th April 2012, 16:42
Hi... I'm working on OSX, does somebody now why the following code creates an .ini file inside my bundle???


QSettings mySettings(QSettings::IniFormat, QSettings::SystemScope, QApplication::ApplicationName, CProgrVersion::GetOrganizationName());
mySettings.setValue("key", "xyz");
mySettings.sync();

This creates me the file /Applications/myApp.app/Contents/myDomain.org/myApp.ini ...
According to the doc, this code should store my settings under /Library/Preferences/myDomain.org/myApp.ini

Any help would be really appreciated.

Spitfire
27th April 2012, 11:21
I haven't used mac for a while, but that's how it should be if I recall correctly ( /Library/... ).

Try rebuilding the project (I know it's obvious but It's only thing that I can think of).