aboutsummaryrefslogtreecommitdiff
path: root/qt/main.cpp
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-16 09:56:55 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-16 09:56:55 +0200
commit9589072687726dd51776b0e952625ae1996f4721 (patch)
tree2dbc63de0b3e5805b5dca2919d05b4356c1194a4 /qt/main.cpp
parentdc5e8188a7e29909cbdf661e9b2a80700fe0491d (diff)
downloadnissy-core-9589072687726dd51776b0e952625ae1996f4721.tar.gz
nissy-core-9589072687726dd51776b0e952625ae1996f4721.zip
Added rudimentary QT UI
Diffstat (limited to 'qt/main.cpp')
-rw-r--r--qt/main.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/qt/main.cpp b/qt/main.cpp
new file mode 100644
index 0000000..658d448
--- /dev/null
+++ b/qt/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", "NissyMain");
14
15 return app.exec();
16}

Generated with cgit - Back to sebastiano.tronto.net