aboutsummaryrefslogtreecommitdiffstats
path: root/doc/examples/progressbar
diff options
context:
space:
mode:
authorLeena Miettinen <riitta-leena.miettinen@qt.io>2019-06-18 09:57:33 +0200
committerLeena Miettinen <riitta-leena.miettinen@qt.io>2019-06-18 10:24:42 +0000
commit4d073fb67d47567ad8934b60ab16fc29fc96bcac (patch)
tree6a08c4f716028983965432d6748be328a86cbe03 /doc/examples/progressbar
parent29668d633e7f2ac18782d19ea419881e27deae24 (diff)
Doc: Describe adding the import path
Also add the import path to the example main.cpp file. Task-number: QDS-805 Change-Id: I990e5dc364d610a4cef5697b3355147f9e5fcde1 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
Diffstat (limited to 'doc/examples/progressbar')
-rw-r--r--doc/examples/progressbar/main.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/examples/progressbar/main.cpp b/doc/examples/progressbar/main.cpp
index f8f4c584aa..d8275e35c2 100644
--- a/doc/examples/progressbar/main.cpp
+++ b/doc/examples/progressbar/main.cpp
@@ -9,6 +9,7 @@ int main(int argc, char *argv[])
QGuiApplication app(argc, argv);
QQuickView view;
+ view.engine->addImportPath("qrc:/qml/imports");
view.setSource(QUrl("qrc:/qml/ProgressBar.ui.qml"));
if (!view.errors().isEmpty())
return -1;