QSettings setting("./cfg.ini", QSettings::IniFormat);
QVariantval = setting.value("key");
QStringstrVal = val.toString();
if (!strVal.isEmpty())
{
qDebug() << "value1=" << strVal;
}
setting.setValue("key", variant);
QSettings setting("./cfg.ini", QSettings::IniFormat);
QVariantval = setting.value("key");
QStringstrVal = val.toString();
if (!strVal.isEmpty())
{
qDebug() << "value1=" << strVal;
}
setting.setValue("key", variant);