diff --git a/doc/examples/progressbar/main.cpp b/doc/examples/progressbar/main.cpp index f8f4c584aa5..d8275e35c29 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; diff --git a/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc b/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc index 174b6c3c934..9e1fe9919ed 100644 --- a/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc +++ b/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc @@ -99,8 +99,9 @@ \quotefromfile progressbar/main.cpp \skipto QQuickView view; \printuntil view.show() - Where \c {qml\main.qml} is the path to and the name of the main QML - file in the Qt Quick UI project. + Where \c {qrc:/qml/imports} is the import path and + \c {qrc:qml/ProgressBar.ui.qml} is the path to and the + name of the main QML file in the Qt Quick UI project. \li Select \uicontrol Build > \uicontrol Run to build and run your project. \endlist