#include #include #include #include #include #include #include #include int main(int argc, char *argv[]) { QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling); QGuiApplication app(argc, argv); CppManager C; QmlManager Q; PluginManager P; OutputManager O; MainManager M(&C, &Q, &O, &P); QQmlApplicationEngine engine; auto *R = engine.rootContext(); R->setContextProperty("CppManager", &C); R->setContextProperty("QmlManager", &Q); R->setContextProperty("PluginManager", &P); R->setContextProperty("MainManager", &M); R->setContextProperty("OutputManager", &O); engine.load(QUrl(QLatin1String("qrc:/QML/main.qml"))); if (engine.rootObjects().isEmpty()) return -1; return app.exec(); }