1
0
mirror of https://gitee.com/drabel/LibQQt.git synced 2025-01-04 10:18:44 +08:00

19 lines
407 B
C++
Raw Normal View History

2019-06-08 22:22:57 +08:00
#include "mainwindow.h"
#include <QQtApplication>
int main ( int argc, char* argv[] )
{
//高DPI下需要支持
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
QApplication::setAttribute ( Qt::AA_EnableHighDpiScaling );
QApplication::setAttribute ( Qt::AA_UseHighDpiPixmaps );
#endif
QQtApplication a ( argc, argv );
MainWindow w;
w.show();
return a.exec();
}