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