diff options
Diffstat (limited to 'main.cpp')
-rw-r--r-- | main.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/main.cpp b/main.cpp new file mode 100644 index 0000000..8f7eafc --- /dev/null +++ b/main.cpp @@ -0,0 +1,19 @@ +#include <QApplication> +#include <QQmlApplicationEngine> + +int main(int argc, char *argv[]) +{ + QApplication app(argc, argv); + QQmlApplicationEngine engine; + + engine.load(QUrl(QStringLiteral("qrc:/main.qml"))); + + QObject::connect( + static_cast<QObject*>(&engine), + SIGNAL(quit()), + static_cast<QObject*>(&app), + SLOT(quit()) + ); + + return app.exec(); +} |