summaryrefslogtreecommitdiff
path: root/tests/projects/qt/quickapp/src/main.cpp
blob: 7d9cb80df28c204574c7b2d8adb9e725f9ad09cd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#include <QGuiApplication>
#include <QQmlApplicationEngine>

int main(int argc, char *argv[]) {
#if QT_VERSION >= 0x50601
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
#endif

    QGuiApplication app(argc, argv);

    QQmlApplicationEngine engine;
    engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
    if (engine.rootObjects().isEmpty())
        return -1;

    return app.exec();
}