PDA

View Full Version : QSettings.



afflictedd2
5th April 2009, 19:17
Hi everyone,

I want to experiment with a program I'm building that uses QSettings to remember a path.. however I want to be able to reset whatever is kept, so I can test my code further. Where are these settings being kept. I'm in a MacOS Leopard 10.5 (Documentation says in the Library folder, but where in there? )


QSettings settings("Software Inc.", "Viper Sims");
environment = settings.value("environment").toString();

Thanks in advance,
Ed.

talk2amulya
5th April 2009, 20:14
its in the preferences xml for application..documentation clearly tells the whole path:

http://doc.trolltech.com/4.4/qsettings.html

read about platform specific notes..although u can also force ini format, the path for which is also given..go throug the whole QSettings..it'll remove all your doubts