hi,
I want to portably (both as in inter-os as well as in portable software) store the settings for my application.
To do that, i decided to save them in the INIformat to the same directory as the executable.
st.setValue("test", 1234);
st.sync();
QSettings::setDefaultFormat(QSettings::IniFormat);
QSettings::setPath(QSettings::IniFormat, QSettings::UserScope, a.applicationDirPath());
QSettings st;
st.setValue("test", 1234);
st.sync();
To copy to clipboard, switch view to plain text mode
This works well, but creates an unnecessary folder:
./mycompany/myapp.ini
I`d like it to be
./myapp.ini
is taht possible?
edit:
removed original post. Turns out setPath() is a static method, even though my IDE lead me to believe differently..
Bookmarks