diff options
-rw-r--r-- | doc/examples/progressbar/main.cpp | 2 | ||||
-rw-r--r-- | doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/doc/examples/progressbar/main.cpp b/doc/examples/progressbar/main.cpp index d8275e35c2..b418a6c3df 100644 --- a/doc/examples/progressbar/main.cpp +++ b/doc/examples/progressbar/main.cpp @@ -9,7 +9,7 @@ int main(int argc, char *argv[]) QGuiApplication app(argc, argv); QQuickView view; - view.engine->addImportPath("qrc:/qml/imports"); + 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 ff8d929f9e..73df38d295 100644 --- a/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc +++ b/doc/src/qtquick/qtquick-from-qmlproject-to-pro.qdoc @@ -100,7 +100,7 @@ \skipto QQuickView view; \printuntil view.show() Where \c {qrc:/qml/imports} is the import path and - \c {qrc:qml/ProgressBar.ui.qml} is the path to and the + \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. |