aboutsummaryrefslogtreecommitdiffstats
path: root/examples/quick/flexboxlayout/main.cpp
diff options
context:
space:
mode:
authorSanthosh Kumar <[email protected]>2025-08-15 07:15:51 +0200
committerQt Cherry-pick Bot <[email protected]>2025-08-15 13:28:20 +0000
commita319a14da799d9762d0e51791bd281732554661b (patch)
tree5ff6b6edc39381d36fbee684f58e15c75934d647 /examples/quick/flexboxlayout/main.cpp
parent2c0dbae934d4886d9d59236f43019e7b111401e5 (diff)
Rename flexboxlayout example directory in consistent with othersv6.10.0-beta3
Change-Id: Ie189960af25a33f0dee54fbd49213f9d5eab5891 Reviewed-by: Mitch Curtis <[email protected]> (cherry picked from commit 5b21e3c72bbf41420735b921576b008f8a4062e6) Reviewed-by: Qt Cherry-pick Bot <[email protected]>
Diffstat (limited to 'examples/quick/flexboxlayout/main.cpp')
-rw-r--r--examples/quick/flexboxlayout/main.cpp21
1 files changed, 21 insertions, 0 deletions
diff --git a/examples/quick/flexboxlayout/main.cpp b/examples/quick/flexboxlayout/main.cpp
new file mode 100644
index 0000000000..a2cac9c6e2
--- /dev/null
+++ b/examples/quick/flexboxlayout/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("flexboxlayoutexample", "Main");
+
+ return app.exec();
+}