The private dir fixes the issue on 5th and ^3. But it doesn't work on 3rd (Qt4.6.3 or Qt4.7.3)
Code:
QSettings *settings;
settings = new QSettings(QApplication::applicationDirPath().append(QDir::separator()).append("set.ini"), QSettings::IniFormat);
settings->setValue("test",1);
While the app is running the value "1" can be read:
settings->value("test", 0)
After restarting the app, the value is gone.
The above code works fine on 5th and ^3.
Tried stuff like:
Code:
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, apppath);
No luck.