Qt ini文件的读写
0. Qt helper
QSettings::QSettings(const QString &fileName, Format format, QObject *parent = Q_NULLPTR)
Constructs a QSettings object for accessing the settings stored in the file called fileName, with parent parent. If the file doesn’t already exist, it is created.
If format is QSettings::NativeFormat, the meaning of fileName depends on the platform. On Unix, fileName is the name of an INI file. On macOS and iOS, fileName is the name of a .plist file. On Windows, fileName is a path in the system registry.
If format is QSettings::IniFormat, fileName is the name of an INI file.
生成的ini文件默认存储在Debug目录下
1. ini文件写入
格式是: 节/键 = 值
section
key = value
//创建ini文件
QSettings *qsetWrite