qmlfrontend/main.cpp
author unc0rr
Mon, 25 Dec 2017 00:58:47 +0100
branchqmlfrontend
changeset 12865 e33bcb9d5e9c
parent 12862 90f927b4b9e1
permissions -rw-r--r--
Preview rendering seems to work now

#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();
}