#include #include #include #include #include "Test.h" int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; Test test; engine.rootContext()->setContextProperty("__test__", &test); engine.load(QUrl(QStringLiteral("src/main.qml"))); return app.exec(); }