All about logic. You can find help about QSettings
you can write a function that loads your setting from an ini file. And call it from main form constructor.
For a ini file;
QString myinifilepath
("myprogsettings.ini");
myini.beginGroup("Settings");
if (myini.value("folderPath1").isValid())
{
ui->lineEdit1->setText(myini.value("folderPath1").toString());
}
.....
.....
....
myini.endGroup();
QString myinifilepath("myprogsettings.ini");
QSettings myini(myinifilepath,QSettings::IniFormat);
myini.beginGroup("Settings");
if (myini.value("folderPath1").isValid())
{
ui->lineEdit1->setText(myini.value("folderPath1").toString());
}
.....
.....
....
myini.endGroup();
To copy to clipboard, switch view to plain text mode
if you want to save your settings, you can call a save function, which event you want.
myini.setValue("folderPath1",ui->lineEdit1->text());
myini.setValue("folderPath1",ui->lineEdit1->text());
To copy to clipboard, switch view to plain text mode
please read the docs and write little prototype applications to learn.
Bookmarks