aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual/threading/workerscript/workerscript.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/threading/workerscript/workerscript.cpp')
-rw-r--r--tests/manual/threading/workerscript/workerscript.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/manual/threading/workerscript/workerscript.cpp b/tests/manual/threading/workerscript/workerscript.cpp
new file mode 100644
index 0000000000..9b28b7c350
--- /dev/null
+++ b/tests/manual/threading/workerscript/workerscript.cpp
@@ -0,0 +1,19 @@
+// Copyright (C) 2021 The Qt Company Ltd.
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#include <QtGui/qguiapplication.h>
+#include <QtQuick/QQuickView>
+
+int main(int argc, char *argv[])
+{
+ QGuiApplication app(argc, argv);
+
+ QCoreApplication::setApplicationName("workerscript-manual-test");
+ QCoreApplication::setOrganizationName("QtProject");
+
+ QQuickView view;
+ view.setSource(QUrl(QStringLiteral("qrc:/qt/qml/workerscript/workerscript.qml")));
+ view.show();
+
+ return app.exec();
+}