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

19 lines
407 B
C++
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

#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();
}