summaryrefslogtreecommitdiffstats
path: root/tests/manual/shadow-map-qml/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/manual/shadow-map-qml/main.cpp')
-rw-r--r--tests/manual/shadow-map-qml/main.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/tests/manual/shadow-map-qml/main.cpp b/tests/manual/shadow-map-qml/main.cpp
new file mode 100644
index 000000000..dbdf4610d
--- /dev/null
+++ b/tests/manual/shadow-map-qml/main.cpp
@@ -0,0 +1,22 @@
+// Copyright (C) 2014 Klaralvdalens Datakonsult AB (KDAB).
+// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
+
+#include <Qt3DQuickExtras/qt3dquickwindow.h>
+#include <Qt3DQuick/QQmlAspectEngine>
+#include <QGuiApplication>
+#include <QQmlContext>
+#include <QQmlEngine>
+
+int main(int argc, char* argv[])
+{
+ QGuiApplication app(argc, argv);
+
+ Qt3DExtras::Quick::Qt3DQuickWindow view;
+ view.resize(1600, 800);
+ view.engine()->qmlEngine()->rootContext()->setContextProperty("_window", &view);
+ view.setSource(QUrl("qrc:/main.qml"));
+ view.show();
+
+ return app.exec();
+}
+