diff options
author | Qt Continuous Integration System <qt-info@nokia.com> | 2011-08-18 07:26:35 (GMT) |
---|---|---|
committer | Qt Continuous Integration System <qt-info@nokia.com> | 2011-08-18 07:26:35 (GMT) |
commit | 86fb4d8754b0d01e88238c3d2af4c28e3624d702 (patch) | |
tree | 10780bc1c2632afdc811b037745f415c35ebacab | |
parent | 5e435bfcad5a05c775c9d45edbd2659c87416754 (diff) | |
parent | c2e8af87b10eaf57d397d467a79fcc24fa23bacf (diff) | |
download | Qt-86fb4d8754b0d01e88238c3d2af4c28e3624d702.zip Qt-86fb4d8754b0d01e88238c3d2af4c28e3624d702.tar.gz Qt-86fb4d8754b0d01e88238c3d2af4c28e3624d702.tar.bz2 |
Merge branch 'master' of scm.dev.nokia.troll.no:qt/qt-qml-staging into master-integration
* 'master' of scm.dev.nokia.troll.no:qt/qt-qml-staging:
Improve documentation for QDeclarativeView::setSource()
-rw-r--r-- | doc/src/declarative/network.qdoc | 7 | ||||
-rw-r--r-- | src/declarative/util/qdeclarativeview.cpp | 2 |
2 files changed, 5 insertions, 4 deletions
diff --git a/doc/src/declarative/network.qdoc b/doc/src/declarative/network.qdoc index cb83542..0ebf8ae 100644 --- a/doc/src/declarative/network.qdoc +++ b/doc/src/declarative/network.qdoc @@ -134,10 +134,9 @@ One of the URL schemes built into Qt is the "qrc" scheme. This allows content to the executable using \l{The Qt Resource System}. Using this, an executable can reference QML content that is compiled into the executable: -\code - QDeclarativeView *canvas = new QDeclarativeView; - canvas->setUrl(QUrl("qrc:/dial.qml")); -\endcode +\quotefromfile snippets/declarative/qtbinding/resources/main.cpp +\skipto view +\printuntil setSource The content itself can then use relative URLs, and so be transparently unaware that the content is compiled into the executable. diff --git a/src/declarative/util/qdeclarativeview.cpp b/src/declarative/util/qdeclarativeview.cpp index bab991b..45995ce 100644 --- a/src/declarative/util/qdeclarativeview.cpp +++ b/src/declarative/util/qdeclarativeview.cpp @@ -319,6 +319,8 @@ QDeclarativeView::~QDeclarativeView() Ensure that the URL provided is full and correct, in particular, use \l QUrl::fromLocalFile() when loading a file from the local filesystem. + + \sa {Network Transparency}{Loading Resources in QML} */ /*! |