summaryrefslogtreecommitdiffstats
path: root/examples/declarative/webview/transparent.qml
blob: e4efc31bcfdc73266558abf37411e2df85243940 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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>"
    }
}