写
void writeIni()
{
QCoreApplication::setOrganizationName(QString("Digia"));
QCoreApplication::setApplicationName(QString("frainSuperApp"));
QSettings settings(QSettings::IniFormat, QSettings::UserScope, QCoreApplication::organizationName(), QCoreApplication::applicationName());
settings.beginGroup("Qt6.5");
settings.setValue("Name", "Qt Creator");
settings.setValue("Version"<