#include #include #include #include "CppObject.h" int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlApplicationEngine engine; CppObject cppObject; engine.rootContext()->setContextProperty("cppObject", &cppObject); engine.load(QUrl(QStringLiteral("qrc:/window.qml"))); return app.exec(); }