This commit is contained in:
2019-02-20 14:57:54 +01:00
parent 3a0b3d59ce
commit bd4df296b0
8 changed files with 452 additions and 0 deletions

23
main.cpp Normal file
View File

@@ -0,0 +1,23 @@
#include <QGuiApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include "manager.h"
extern Manager mgmt;
int main(int argc, char *argv[])
{
QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
QGuiApplication app(argc, argv);
QQmlApplicationEngine engine;
engine.load(QUrl(QStringLiteral("qrc:/main.qml")));
engine.rootContext()->setContextProperty("mgmt", &mgmt);
if (engine.rootObjects().isEmpty())
return -1;
return app.exec();
}