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 |
}
|