summaryrefslogtreecommitdiffstats
path: root/examples/declarative/imageprovider/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/imageprovider/main.cpp')
-rw-r--r--examples/declarative/imageprovider/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/declarative/imageprovider/main.cpp b/examples/declarative/imageprovider/main.cpp
index 9526105..eaaded2 100644
--- a/examples/declarative/imageprovider/main.cpp
+++ b/examples/declarative/imageprovider/main.cpp
@@ -75,7 +75,6 @@ int main(int argc, char ** argv)
QApplication app(argc, argv);
QmlView view;
- view.setSource(QUrl("qrc:view.qml"));
view.engine()->addImageProvider("colors", new ColorImageProvider);
@@ -91,7 +90,7 @@ int main(int argc, char ** argv)
QmlContext *ctxt = view.rootContext();
ctxt->setContextProperty("myModel", QVariant::fromValue(dataList));
- view.execute();
+ view.setSource(QUrl("qrc:view.qml"));
view.show();
return app.exec();