author | unC0Rr |
Tue, 06 Nov 2018 17:00:35 +0100 | |
changeset 14164 | 745c73e0e644 |
parent 12854 | 28cb18c5e712 |
child 14175 | 8354b390f1a2 |
permissions | -rw-r--r-- |
12854 | 1 |
#include <QGuiApplication> |
2 |
#include <QQmlApplicationEngine> |
|
3 |
||
14164 | 4 |
#include "hwengine.h" |
5 |
||
6 |
int main(int argc, char* argv[]) { |
|
12854 | 7 |
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
8 |
QGuiApplication app(argc, argv); |
|
9 |
||
10 |
QQmlApplicationEngine engine; |
|
14164 | 11 |
|
12 |
HWEngine::exposeToQML(); |
|
13 |
||
12854 | 14 |
engine.load(QUrl(QLatin1String("qrc:/main.qml"))); |
14164 | 15 |
if (engine.rootObjects().isEmpty()) return -1; |
12854 | 16 |
|
17 |
return app.exec(); |
|
18 |
} |