Qt只QSetting

The QSettings class provides persistent platform-independent application settings.

提供跨平台的持久性设置。

QSetting基于QVariant。如果是想要内存存储的话,用QMap<QStringQVariant> 。

基本用法

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");
posted @ 2013-10-10 10:51  hailong  阅读(547)  评论(0编辑  收藏  举报