summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVolker Krause <volker.krause@kdab.com>2016-03-02 11:33:51 +0100
committerSean Harmer <sean.harmer@kdab.com>2016-03-02 12:44:40 +0000
commit6e2b2e4177bc763dc3f20dff550741e74b727677 (patch)
treeb991e100b9b550a3905f6045944edd08801eb9ee
parent20f9da5a5577e7f2e8bf2b3ea176e2f433d6b0d9 (diff)
Fix "Must construct a QGuiApplication before a QPixmap" startup error.
Change-Id: Ibe460df252601fa931721b9ef5df8f919db7c045 Reviewed-by: Paul Lemire <paul.lemire@kdab.com> Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
-rw-r--r--examples/qt3d/gltf/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qt3d/gltf/main.cpp b/examples/qt3d/gltf/main.cpp
index 7ae95102a..afde3a5f9 100644
--- a/examples/qt3d/gltf/main.cpp
+++ b/examples/qt3d/gltf/main.cpp
@@ -54,8 +54,8 @@
int main(int argc, char* argv[])
{
- Qt3DQuickWindow view;
QGuiApplication app(argc, argv);
+ Qt3DQuickWindow view;
view.setSource(QUrl("qrc:/main.qml"));
view.show();