summaryrefslogtreecommitdiffstats
path: root/examples/declarative/webview/inline-html.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/webview/inline-html.qml')
-rw-r--r--examples/declarative/webview/inline-html.qml14
1 files changed, 14 insertions, 0 deletions
diff --git a/examples/declarative/webview/inline-html.qml b/examples/declarative/webview/inline-html.qml
new file mode 100644
index 0000000..23b4555
--- /dev/null
+++ b/examples/declarative/webview/inline-html.qml
@@ -0,0 +1,14 @@
+import Qt 4.6
+
+// 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>"
+}