#include #include #include #include // networking #include #include #include #include #include // json parsing #include #include #include #include #include // console output #include // #include #include "../model/FilterModel.h" #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"); FilterModel filter; filter.setSourceModel(&model); objectContext->setContextProperty("sports", &model); objectContext->setContextProperty("filter", &filter); QQmlComponent component(&engine, "qrc:/qt/qml/itat/res/gui/application.qml"); QObject *object = component.create(objectContext); return app.exec(); }