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

23 lines
564 B
C++

3 months ago
#include "widget.h"
#include <QApplication>
#include "common.h"
3 months ago
#include "EasySpdLog.h"
int main(int argc, char *argv[])
{
QApplication a(argc, argv);
// 初始化日志类
auto loggerPath = QString(QApplication::applicationDirPath() + "/logs/log.log").toLocal8Bit();
SetLogger(loggerPath.data());
// 加载配置文件
QString filePath = QApplication::applicationDirPath() + "/config";
Common::GetInstance()->loadConfig(filePath);
3 months ago
//
Widget w;
w.move(0, 0);
w.show();
return a.exec();
}