diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-16 09:56:55 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-16 09:56:55 +0200 |
| commit | 9589072687726dd51776b0e952625ae1996f4721 (patch) | |
| tree | 2dbc63de0b3e5805b5dca2919d05b4356c1194a4 /qt/main.cpp | |
| parent | dc5e8188a7e29909cbdf661e9b2a80700fe0491d (diff) | |
| download | nissy-core-9589072687726dd51776b0e952625ae1996f4721.tar.gz nissy-core-9589072687726dd51776b0e952625ae1996f4721.zip | |
Added rudimentary QT UI
Diffstat (limited to 'qt/main.cpp')
| -rw-r--r-- | qt/main.cpp | 16 |
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 | |||
| 6 | int 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 | } | ||
