blob: 27da8145a13b0a5679537decabf11cd150d7ed33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
|
import Qt 4.7
import org.webkit 1.0
import "content"
Rectangle {
id: webBrowser
property string urlString : "http://qt.nokia.com/"
width: 800; height: 600
color: "#343434"
FlickableWebView {
id: webView
url: webBrowser.urlString
anchors { top: headerSpace.bottom; left: parent.left; right: parent.right; bottom: parent.bottom }
}
Item {
id: headerSpace
width: parent.width; height: 62
}
Header {
id: header
editUrl: webBrowser.urlString
width: headerSpace.width; height: headerSpace.height
}
ScrollBar {
scrollArea: webView; width: 8
anchors { right: parent.right; top: header.bottom; bottom: parent.bottom }
}
// ScrollBar {
// scrollArea: webView; height: 8; orientation: Qt.Horizontal
// anchors { right: parent.right; rightMargin: 8; left: parent.left; bottom: parent.bottom }
// }
}
|