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");

相关文章:

  • 2021-06-13
  • 2022-12-23
  • 2021-09-01
  • 2021-08-04
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-18
猜你喜欢
  • 2022-12-23
  • 2021-05-19
  • 2022-12-23
  • 2021-10-07
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案