Hi,
I have the following code:
void MyClass::SetDefaultOptions()
{
Settings.setValue("options/dynamicresize", 1);
Settings.setValue("options/width", 480);
Settings.setValue("options/height", 800);
Settings.setValue("options/xcoordinate", 0);
Settings.setValue("options/ycoordinate", 0);
}
void MyClass::SetDefaultOptions()
{
QSettings Settings(QSettings::IniFormat, QSettings::UserScope, MyCompany", "MyApp");
Settings.setValue("options/dynamicresize", 1);
Settings.setValue("options/width", 480);
Settings.setValue("options/height", 800);
Settings.setValue("options/xcoordinate", 0);
Settings.setValue("options/ycoordinate", 0);
}
To copy to clipboard, switch view to plain text mode
Which gets called in the constructor, but I can't find the ini when I run it. I'm guessing it's supposed to be in the debug/release folder?
Bookmarks