diff options
Diffstat (limited to 'src/main')
-rw-r--r-- | src/main/main.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/main/main.cpp b/src/main/main.cpp new file mode 100644 index 0000000..4796716 --- /dev/null +++ b/src/main/main.cpp @@ -0,0 +1,19 @@ +#include <QGuiApplication> +#include <QQmlEngine> +#include <QQmlContext> +#include <QQmlComponent> + +int main(int argc, char *argv[]) +{ + QGuiApplication app(argc, argv); + + QQmlEngine engine; + QQmlContext *objectContext = new QQmlContext(engine.rootContext()); + + QQmlComponent component(&engine, "application.qml"); + QObject *object = component.create(objectContext); + + // ... delete object and objectContext when necessary + + return app.exec(); +} |