aboutsummaryrefslogtreecommitdiff
path: root/qt-quick/main.cpp
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-25 16:18:26 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-25 16:19:02 +0200
commit97b5778172572504c8dfbe173b18281e786270c0 (patch)
treee775099577e9ef61465717ae453d71d8ff44559f /qt-quick/main.cpp
downloadqt-experiments-97b5778172572504c8dfbe173b18281e786270c0.tar.gz
qt-experiments-97b5778172572504c8dfbe173b18281e786270c0.zip
Initial commit
Diffstat (limited to '')
-rw-r--r--qt-quick/main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/qt-quick/main.cpp b/qt-quick/main.cpp
new file mode 100644
index 0000000..a012642
--- /dev/null
+++ b/qt-quick/main.cpp
@@ -0,0 +1,16 @@
1#include "adapter.h"
2
3#include <QGuiApplication>
4#include <QQmlApplicationEngine>
5
6int main(int argc, char *argv[])
7{
8 QGuiApplication app(argc, argv);
9 QQmlApplicationEngine engine;
10 QObject::connect(&engine, &QQmlApplicationEngine::objectCreationFailed,
11 &app, []() { QCoreApplication::exit(-1); }, Qt::QueuedConnection);
12
13 engine.loadFromModule("nissyqt", "Main");
14
15 return app.exec();
16}

Generated with cgit - Back to sebastiano.tronto.net