diff options
Diffstat (limited to 'examples/declarative/webview/transparent.qml')
-rw-r--r-- | examples/declarative/webview/transparent.qml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/examples/declarative/webview/transparent.qml b/examples/declarative/webview/transparent.qml new file mode 100644 index 0000000..9332f3e --- /dev/null +++ b/examples/declarative/webview/transparent.qml @@ -0,0 +1,13 @@ +import Qt 4.6 + +// The WebView background is transparent +// if the HTML does not specify a background +Rectangle { + color: "green" + width: web.width + height: web.height + WebView { + id: web + html: "Hello <b>World!</b>" + } +} |