summaryrefslogtreecommitdiffstats
path: root/examples/declarative/modelviews/webview/inline-html.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/modelviews/webview/inline-html.qml')
-rw-r--r--examples/declarative/modelviews/webview/inline-html.qml15
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/declarative/modelviews/webview/inline-html.qml b/examples/declarative/modelviews/webview/inline-html.qml
new file mode 100644
index 0000000..eec7fc6
--- /dev/null
+++ b/examples/declarative/modelviews/webview/inline-html.qml
@@ -0,0 +1,15 @@
+import Qt 4.7
+import org.webkit 1.0
+
+// Inline HTML with loose formatting can be
+// set on the html property.
+WebView {
+ html:"\
+ <body bgcolor=white>\
+ <table border=1>\
+ <tr><th><th>One<th>Two<th>Three\
+ <tr><th>1<td>X<td>1<td>X\
+ <tr><th>2<td>0<td>X<td>0\
+ <tr><th>3<td>X<td>1<td>X\
+ </table>"
+}