diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-08-26 07:54:33 (GMT) |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2011-08-26 07:54:33 (GMT) |
commit | 87136163dcd7ffb8759875bca2b4e559a32167cd (patch) | |
tree | 5c5467759ffdf69d5e62a052fb77fc64d5a54f45 /doc/src/declarative | |
parent | 0c70be512bfc40e8a2a09f60a66b7ecb114e748e (diff) | |
parent | 8f389d20bc01a355a6a1885b5bd1d30bd2ff0c71 (diff) | |
download | Qt-87136163dcd7ffb8759875bca2b4e559a32167cd.zip Qt-87136163dcd7ffb8759875bca2b4e559a32167cd.tar.gz Qt-87136163dcd7ffb8759875bca2b4e559a32167cd.tar.bz2 |
Merge remote-tracking branch 'mainline/4.8'
Diffstat (limited to 'doc/src/declarative')
-rw-r--r-- | doc/src/declarative/network.qdoc | 7 |
1 files changed, 3 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. |