qmlfrontend/main.cpp
author unc0rr
Fri, 05 Jan 2018 21:43:33 +0100
branchqmlfrontend
changeset 12877 c9418f57fcbc
parent 12860 e33bcb9d5e9c
permissions -rw-r--r--
Comment out functions that don't need to be called for engine in frontend window

#include <QGuiApplication>
#include <QQmlApplicationEngine>

#include "hwengine.h"

int main(int argc, char* argv[])
{
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
    QGuiApplication app(argc, argv);

    QQmlApplicationEngine engine;

    HWEngine::exposeToQML();

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

    return app.exec();
}