author | Wuzzy <Wuzzy2@mail.ru> |
Wed, 07 Mar 2018 10:44:30 +0100 | |
changeset 13086 | 8d569c7b36a2 |
parent 12854 | 28cb18c5e712 |
child 12857 | 90f927b4b9e1 |
child 14143 | 745c73e0e644 |
permissions | -rw-r--r-- |
12854 | 1 |
#include <QGuiApplication> |
2 |
#include <QQmlApplicationEngine> |
|
3 |
||
4 |
int main(int argc, char *argv[]) |
|
5 |
{ |
|
6 |
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); |
|
7 |
QGuiApplication app(argc, argv); |
|
8 |
||
9 |
QQmlApplicationEngine engine; |
|
10 |
engine.load(QUrl(QLatin1String("qrc:/main.qml"))); |
|
11 |
if (engine.rootObjects().isEmpty()) |
|
12 |
return -1; |
|
13 |
||
14 |
return app.exec(); |
|
15 |
} |