aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/models/threadedfetchmore/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/quick/models/threadedfetchmore/main.cpp')
-rw-r--r--examples/quick/models/threadedfetchmore/main.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/quick/models/threadedfetchmore/main.cpp b/examples/quick/models/threadedfetchmore/main.cpp
new file mode 100644
index 0000000000..fcd72d6a61
--- /dev/null
+++ b/examples/quick/models/threadedfetchmore/main.cpp
@@ -0,0 +1,21 @@
+// Copyright (C) 2025 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause
+
+#include <QGuiApplication>
+#include <QQmlApplicationEngine>
+
+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("threadedfetchmore", "ThreadedFetchMore");
+
+ return app.exec();
+}