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