summaryrefslogtreecommitdiffstats
path: root/examples/declarative/webview/transparent.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/declarative/webview/transparent.qml')
-rw-r--r--examples/declarative/webview/transparent.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/examples/declarative/webview/transparent.qml b/examples/declarative/webview/transparent.qml
new file mode 100644
index 0000000..71e1621
--- /dev/null
+++ b/examples/declarative/webview/transparent.qml
@@ -0,0 +1,6 @@
+<!-- The WebView background is transparent
+ if the HTML does not specify a background -->
+
+<Rect color="green" width="{Web.width}" height="{Web.height}">
+ <WebView id="Web" html="Hello &lt;b&gt;World!&lt;/b&gt;"/>
+</Rect>