28 lines
748 B
C++
28 lines
748 B
C++
#include "frmmain.h"
|
|
#include "appinit.h"
|
|
#include "quihelper.h"
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
//设置不应用操作系统设置比如字体
|
|
QApplication::setDesktopSettingsAware(false);
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(5,0,0))
|
|
QApplication::setAttribute(Qt::AA_Use96Dpi);
|
|
#endif
|
|
#if (QT_VERSION >= QT_VERSION_CHECK(5,14,0))
|
|
QApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Floor);
|
|
#endif
|
|
QApplication a(argc, argv);
|
|
AppInit::Instance()->start();
|
|
|
|
QUIHelper::setFont();
|
|
QUIHelper::setCode();
|
|
|
|
frmMain w;
|
|
w.setWindowTitle("metro风格主界面 (QQ: 517216493 WX: feiyangqingyun)");
|
|
QUIHelper::setFormInCenter(&w);
|
|
w.show();
|
|
|
|
return a.exec();
|
|
}
|