Fix progressbar example so that it compiles and related doc

Change-Id: I17423a57cf4e86492462caacd3ba0a9d5d4dd6be
Reviewed-by: Paul Wicking <paul.wicking@qt.io>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
This commit is contained in:
Andy Shaw
2020-01-30 12:57:34 +01:00
parent 652a6da4b3
commit c50e928e76
2 changed files with 2 additions and 2 deletions

View File

@@ -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;

View File

@@ -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.