diff options
author | Topi Reinio <topi.reinio@digia.com> | 2013-11-25 13:27:42 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-30 17:57:21 +0100 |
commit | 65e089766c5ae9345a8dd7dab7c54273713df3c0 (patch) | |
tree | ab3b42a11e307472e59cb5b64d0d95666ce7fe32 /examples/qml/tutorials/extending/chapter1-basics/main.cpp | |
parent | 8029a015b4a11c48a262f0e9fc8b4a2674fbd505 (diff) |
Doc: Update examples used in Writing QML Extensions tutorial
Update the examples to use Qt's resource file system to
store the qml files in, enabling them to run unmodified
in any platform/build configuration.
Also,
- Chapter 6: Move the plugin code to a subproject
and create a C++ application to use the plugin
- Update documentation related to above chapter
- Add thumbnails for the examples so they will
appear in Qt Creators example list.
Task-number: QTBUG-35001
Change-Id: I29122af11bb11c7e5e17993438e5fc18c7f96f89
Reviewed-by: Jerome Pasion <jerome.pasion@digia.com>
Reviewed-by: Alan Alpert <aalpert@blackberry.com>
Reviewed-by: Kai Koehne <kai.koehne@digia.com>
Diffstat (limited to 'examples/qml/tutorials/extending/chapter1-basics/main.cpp')
-rw-r--r-- | examples/qml/tutorials/extending/chapter1-basics/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/qml/tutorials/extending/chapter1-basics/main.cpp b/examples/qml/tutorials/extending/chapter1-basics/main.cpp index d30628fd5a..4e719d2722 100644 --- a/examples/qml/tutorials/extending/chapter1-basics/main.cpp +++ b/examples/qml/tutorials/extending/chapter1-basics/main.cpp @@ -50,7 +50,7 @@ int main(int argc, char *argv[]) QQuickView view; view.setResizeMode(QQuickView::SizeRootObjectToView); - view.setSource(QUrl::fromLocalFile("app.qml")); + view.setSource(QUrl("qrc:///app.qml")); view.show(); return app.exec(); } |