From 35309337aacac2eac7d7215e526bddcf7647b8cf Mon Sep 17 00:00:00 2001 From: Thomas Vanbesien Date: Wed, 11 Mar 2026 11:02:24 +0100 Subject: Initial project setup: Qt 6.10.2 TCP client library for Alchemie XPL2 protocol - Static library (src/) with QML singleton Xpl2Client for TCP communication - Qt Quick demo app (demo/) with connection UI, command input, and response log --- demo/main.cpp | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 demo/main.cpp (limited to 'demo/main.cpp') diff --git a/demo/main.cpp b/demo/main.cpp new file mode 100644 index 0000000..64c4f22 --- /dev/null +++ b/demo/main.cpp @@ -0,0 +1,23 @@ +/** + * @file main.cpp + * @brief Entry point for the QtXpl2 demo application. + */ +#include +#include + +#include +Q_IMPORT_QML_PLUGIN (Xpl2Plugin) + +int +main (int argc, char *argv[]) +{ + QGuiApplication app (argc, argv); + + QQmlApplicationEngine engine; + QObject::connect ( + &engine, &QQmlApplicationEngine::objectCreationFailed, &app, + [] () { QCoreApplication::exit (1); }, Qt::QueuedConnection); + + engine.loadFromModule ("QtXpl2Demo", "Main"); + return app.exec (); +} -- cgit v1.2.3