author | unc0rr |
Fri, 05 Jan 2018 22:32:11 +0100 | |
branch | qmlfrontend |
changeset 12880 | 590c7f324292 |
parent 12860 | e33bcb9d5e9c |
permissions | -rw-r--r-- |
12854 | 1 |
#include <QGuiApplication> |
2 |
#include <QQmlApplicationEngine> |
|
3 |
||
12857 | 4 |
#include "hwengine.h" |
5 |
||
12860 | 6 |
int main(int argc, char* argv[]) |
12854 | 7 |
{ |
12860 | 8 |
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
9 |
QGuiApplication app(argc, argv); |
|
10 |
||
11 |
QQmlApplicationEngine engine; |
|
12854 | 12 |
|
12860 | 13 |
HWEngine::exposeToQML(); |
12854 | 14 |
|
12860 | 15 |
engine.load(QUrl(QLatin1String("qrc:/main.qml"))); |
16 |
if (engine.rootObjects().isEmpty()) |
|
17 |
return -1; |
|
18 |
||
19 |
return app.exec(); |
|
12854 | 20 |
} |