forked from qt-creator/qt-creator
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:
@@ -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;
|
||||
|
@@ -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.
|
||||
|
Reference in New Issue
Block a user