Qt-interest Archive, April 2007
settings file location ... (QCoreApplication::setWhateverName)
Message 1 in thread
Hello, here is the plot :
I'm jealous of Trolltech, because they know how to put a .conf file directly
in ~/.config (I have a 'Trolltech.conf' file there).
I cannot find a way of doing the same ...
If I use QCoreApplication::setOrganizationName("");
QCoreApplication::setApplicationName("myApp");
I end up with ~/.config/Unknown Organisation/myApp.conf
Any idea whats the cheat code Trolltech use ?
Thanks in advance.
--
[ signature omitted ]
Message 2 in thread
Hi,
> If I use QCoreApplication::setOrganizationName("");
> QCoreApplication::setApplicationName("myApp");
>
> I end up with ~/.config/Unknown Organisation/myApp.conf
Specify the origranization instead of the application.
int main(int argc, char *argv[]) {
QCoreApplication app(argc, argv);
QSettings settings("MyOrganization");
settings.setValue("setting", 1);
}
--
[ signature omitted ]