diff options
Diffstat (limited to 'src/declarative/fx')
-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) |