C++ QML Integration Demo App
#include <QApplication>
#include <FelgoApplication>
#include <QQmlApplicationEngine>
#include <QQmlContext>
#include "src/myglobalobject.h"
#include "src/myqmltype.h"
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
FelgoApplication felgo;
QQmlApplicationEngine engine;
felgo.initialize(&engine);
felgo.setLicenseKey(PRODUCT_LICENSE_KEY);
felgo.setMainQmlFileName(QStringLiteral("qml/Main.qml"));
MyGlobalObject* myGlobal = new MyGlobalObject();
myGlobal->doSomething("TEXT FROM C++");
engine.rootContext()->setContextProperty("myGlobalObject", myGlobal);
qmlRegisterType<MyQMLType>("com.yourcompany.xyz", 1, 0, "MyQMLType");
engine.load(QUrl(felgo.mainQmlFileName()));