• 7153阅读
  • 3回复

请问QSettings类读写的配置信息存在什么文件中 [复制链接]

上一主题 下一主题
离线rangzh
 

只看楼主 倒序阅读 楼主  发表于: 2007-01-05
请问QSettings类读写的配置信息存在什么文件中
在Linux系统中,通过QSettings类读写的配置信息一般存放在什么文件中?/usr/etc还是其他?为何找不到配置文件所在
[ 此贴被XChinux在2007-01-07 08:39重新编辑 ]
离线XChinux

只看该作者 1楼 发表于: 2007-01-07
自己定的.
二笔 openSUSE Vim N9 BB10 XChinux@163.com 网易博客 腾讯微博
承接C++/Qt、Qt UI界面、PHP及预算报销系统开发业务
离线ripley2010
只看该作者 2楼 发表于: 2011-03-16
顶一下。。。。。
离线83888788
只看该作者 3楼 发表于: 2011-03-16
Detailed Description
The QSettings class provides persistent platform-independent application settings.
Users normally expect an application to remember its settings (window sizes and positions, options, etc.) across sessions. This information is often stored in the system registry on Windows, and in XML preferences files on Mac OS X. On Unix systems, in the absence of a standard, many applications (including the KDE applications) use INI text files.
QSettings is an abstraction around these technologies, enabling you to save and restore application settings in a portable manner. It also supports custom storage formats.
QSettings's API is based on QVariant, allowing you to save most value-based types, such as QString, QRect, and QImage, with the minimum of effort.
If all you need is a non-persistent memory-based structure, consider using QMap<QString, QVariant> instead.

以上摘自 qt assistant
快速回复
限100 字节
 
上一个 下一个