From 4d073fb67d47567ad8934b60ab16fc29fc96bcac Mon Sep 17 00:00:00 2001 From: Leena Miettinen Date: Tue, 18 Jun 2019 09:57:33 +0200 Subject: 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 --- doc/examples/progressbar/main.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'doc/examples/progressbar') 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; -- cgit v1.2.3