qt_demoe/ui/uidemo08/main.cpp

24 lines
570 B
C++
Raw Normal View History

2021-11-17 07:33:19 +00:00
#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,14,0))
QGuiApplication::setHighDpiScaleFactorRoundingPolicy(Qt::HighDpiScaleFactorRoundingPolicy::Floor);
#endif
QApplication a(argc, argv);
AppInit::Instance()->start();
QUIHelper::setFont();
QUIHelper::setCode();
frmMain w;
QUIHelper::setFormInCenter(&w);
w.show();
return a.exec();
}