aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/blackbox/testdata-qt/quick-compiler/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/auto/blackbox/testdata-qt/quick-compiler/main.cpp')
-rw-r--r--tests/auto/blackbox/testdata-qt/quick-compiler/main.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/auto/blackbox/testdata-qt/quick-compiler/main.cpp b/tests/auto/blackbox/testdata-qt/quick-compiler/main.cpp
new file mode 100644
index 000000000..1fe8944f3
--- /dev/null
+++ b/tests/auto/blackbox/testdata-qt/quick-compiler/main.cpp
@@ -0,0 +1,18 @@
+#include <QGuiApplication>
+#include <QQmlApplicationEngine>
+
+int main(int argc, char *argv[])
+{
+#if defined(Q_OS_WIN)
+ QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
+#endif
+
+ QGuiApplication app(argc, argv);
+
+ QQmlApplicationEngine engine;
+ engine.load(QUrl(QStringLiteral("qrc:/qml/subdir/test.qml")));
+ if (engine.rootObjects().isEmpty())
+ return -1;
+
+ return app.exec();
+}