#ifndef APPCONFIG_H #define APPCONFIG_H #include "head.h" class AppConfig { public: static QString ConfigFile; //配置文件文件路径及名称 static QString DeviceName; //设备名称 static int DotWidth; //数据点宽度 static void readConfig(); //读取配置文件,在main函数最开始加载程序载入 static void writeConfig(); //写入配置文件,在更改配置文件程序关闭时调用 }; #endif // APPCONFIG_H