mirror of
https://gitee.com/drabel/LibQQt.git
synced 2025-01-04 10:18:44 +08:00
6b26486d86
macOS/Windows/Linux都是这样。
22 lines
439 B
C++
22 lines
439 B
C++
#include "qqtapp.h"
|
|
#include "qqt-qt.h"
|
|
#include "qqtversion.h"
|
|
#include "qqtcore.h"
|
|
#include "qqtgui.h"
|
|
#include "qqtwindow.h"
|
|
|
|
int main ( int argc, char* argv[] )
|
|
{
|
|
#if QT_VERSION >= QT_VERSION_CHECK(5,6,0)
|
|
QApplication::setAttribute ( Qt::AA_EnableHighDpiScaling, true );
|
|
QApplication::setAttribute ( Qt::AA_UseHighDpiPixmaps, true );
|
|
#endif
|
|
|
|
QQTApp a ( argc, argv );
|
|
|
|
QQTWindow w;
|
|
w.show();
|
|
|
|
return a.exec();
|
|
}
|