aboutsummaryrefslogtreecommitdiffstats
path: root/examples/shared
diff options
context:
space:
mode:
Diffstat (limited to 'examples/shared')
-rw-r--r--examples/shared/shared.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/shared/shared.h b/examples/shared/shared.h
index e725f8146b..7fd2f08a40 100644
--- a/examples/shared/shared.h
+++ b/examples/shared/shared.h
@@ -70,7 +70,13 @@
return -1;\
}\
view.connect(view.engine(), SIGNAL(quit()), &app, SLOT(quit()));\
- view.setSource(QUrl::fromLocalFile(fileName));\
- view.show();\
+ view.setSource(QUrl::fromLocalFile(fileName)); \
+ if (QGuiApplication::platformName() == QLatin1String("qnx") || \
+ QGuiApplication::platformName() == QLatin1String("eglfs")) {\
+ view.setResizeMode(QQuickView::SizeRootObjectToView);\
+ view.showFullScreen();\
+ } else {\
+ view.show();\
+ }\
return app.exec();\
}