You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

settings.h 481 B

1234567891011121314151617
  1. #ifndef SETTINGS_H
  2. #define SETTINGS_H
  3. #include <QObject>
  4. #include <QSettings>
  5. class Settings : public QSettings
  6. {
  7. public:
  8. Settings(const QString &fileName, Format format, QObject *parent = Q_NULLPTR);
  9. public:
  10. //QSettings::value不是虚函数,这里并非多态重载,使用时需注意以Settings指针调用,而非QSettings调用
  11. QVariant value(const QString &key, const QVariant &defaultValue = QVariant(), bool cacheDefault=true);
  12. };
  13. #endif // SETTINGS_H

mac下的“飞秋”大多数只是飞鸽传书协议,而且未发现令人满意的开源项目,所以基于c++与qt实现了基础的飞秋协议。

Contributors (1)