#include #include #include #include // networking #include #include #include #include #include // json parsing #include #include #include #include #include // console output #include // #include #include "../model/SportModel.h" int main(int argc, char *argv[]) { QGuiApplication app(argc, argv); QQmlEngine engine; QQmlContext *objectContext = new QQmlContext(engine.rootContext()); SportModel model; model.request("ARC"); objectContext->setContextProperty("sports", &model); QQmlComponent component(&engine, "qrc:/qt/qml/itat/res/gui/application.qml"); QObject *object = component.create(objectContext); return app.exec(); }