The QSettings class provides persistent platform-independent application settings.
提供跨平台的持久性设置。
QSetting基于QVariant。如果是想要内存存储的话,用QMap<QString, QVariant> 。
基本用法
When creating a QSettings object, you must pass the name of your company or organization as well as the name of your application. For example, if your product is called Star Runner and your company is called MySoft, you would construct the QSettings object as follows:
QSettings settings("MySoft", "Star Runner");