qmlfrontend/main.cpp
author nemo
Tue, 06 Nov 2018 12:44:38 -0500
changeset 14168 89acfded7722
parent 14164 745c73e0e644
child 14175 8354b390f1a2
permissions -rw-r--r--
workaround for the freepascal bug courtesy of koda

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