diff options
Diffstat (limited to 'examples/declarative/modelviews/webview/transparent.qml')
-rw-r--r-- | examples/declarative/modelviews/webview/transparent.qml | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/declarative/modelviews/webview/transparent.qml b/examples/declarative/modelviews/webview/transparent.qml new file mode 100644 index 0000000..e4efc31 --- /dev/null +++ b/examples/declarative/modelviews/webview/transparent.qml @@ -0,0 +1,15 @@ +import Qt 4.7 +import org.webkit 1.0 + +// 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>" + } +} |