author | unc0rr |
Mon, 25 Dec 2017 00:58:47 +0100 | |
branch | qmlfrontend |
changeset 12865 | e33bcb9d5e9c |
parent 12862 | 90f927b4b9e1 |
permissions | -rw-r--r-- |
12859 | 1 |
#include <QGuiApplication> |
2 |
#include <QQmlApplicationEngine> |
|
3 |
||
12862 | 4 |
#include "hwengine.h" |
5 |
||
12865 | 6 |
int main(int argc, char* argv[]) |
12859 | 7 |
{ |
12865 | 8 |
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
9 |
QGuiApplication app(argc, argv); |
|
10 |
||
11 |
QQmlApplicationEngine engine; |
|
12859 | 12 |
|
12865 | 13 |
HWEngine::exposeToQML(); |
12859 | 14 |
|
12865 | 15 |
engine.load(QUrl(QLatin1String("qrc:/main.qml"))); |
16 |
if (engine.rootObjects().isEmpty()) |
|
17 |
return -1; |
|
18 |
||
19 |
return app.exec(); |
|
12859 | 20 |
} |