diff options
author | Warwick Allison <warwick.allison@nokia.com> | 2009-04-30 06:42:11 (GMT) |
---|---|---|
committer | Warwick Allison <warwick.allison@nokia.com> | 2009-04-30 06:42:11 (GMT) |
commit | cc4c8562890784e1b4ca55612f8963e59f2e6bce (patch) | |
tree | 485036b0eb031db2fc59153073741e6d29fab77f | |
parent | d4ac3b257bc4fc7a5b1aef46296ac30a49fa8b32 (diff) | |
download | Qt-cc4c8562890784e1b4ca55612f8963e59f2e6bce.zip Qt-cc4c8562890784e1b4ca55612f8963e59f2e6bce.tar.gz Qt-cc4c8562890784e1b4ca55612f8963e59f2e6bce.tar.bz2 |
doc
-rw-r--r-- | src/declarative/fx/qfxwebview.cpp | 27 |
1 files changed, 11 insertions, 16 deletions
diff --git a/src/declarative/fx/qfxwebview.cpp b/src/declarative/fx/qfxwebview.cpp index 05730f9..fe694ea 100644 --- a/src/declarative/fx/qfxwebview.cpp +++ b/src/declarative/fx/qfxwebview.cpp @@ -221,7 +221,13 @@ public: if the idealHeight is changed after the content is loaded. \code - <WebView url="http://www.nokia.com" smooth="true" scale="0.5" width="490" height="400"/> + WebView { + url: "http://www.nokia.com" + width: 490 + height: 400 + scale: 0.5 + smooth: true + } \endcode \image webview.png @@ -998,23 +1004,12 @@ QString QFxWebView::html() const \qmlproperty string WebView::html This property holds HTML text set directly - The html property can be set as a string (using CDATA for large blocks), - or as xhtml inline using the XML namespace http://www.w3.org/1999/xhtml: + The html property can be set as a string. \code - <WebView> - <html xmlns="http://www.w3.org/1999/xhtml"> - <p>This is valid xHTML.</p> - </html> - </WebView> - \endcode - - \code - <WebView> - <html><CDATA[ - <p>This is just HTML. - ]]>html> - </WebView> + WebView { + html: "<p>This is <b>HTML</b>." + } \endcode */ void QFxWebView::setHtml(const QString &html, const QUrl &baseUrl) |