diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/main.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp index cee893e..9f175ac 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -20,6 +20,7 @@ // console output #include <QDebug> // #include <iostream> +#include "../model/Sport.h" int main(int argc, char *argv[]) { @@ -28,6 +29,10 @@ int main(int argc, char *argv[]) QQmlEngine engine; QQmlContext *objectContext = new QQmlContext(engine.rootContext()); + SportModel model; + model.request(); + objectContext->setContextProperty("sports", &model); + QQmlComponent component(&engine, "qrc:/qt/qml/itat/res/gui/application.qml"); QObject *object = component.create(objectContext); |