QString fileName;
fileName = QCoreApplication::applicationDirPath();
fileName += "/SetConfigPara.ini";
qDebug()<<fileName;
QSettings settingcfg(fileName, QSettings::IniFormat);
// settingcfg.setValue("interval", 30);
// qDebug()<<settingcfg.value("interval").toInt(); // returns 30
settingcfg.setValue("inter", 6);
qDebug()<<settingcfg.value("interval").toDouble(); // returns 6.55