import Qt 4.7 import QtWebKit 1.0 Rectangle { id: webBrowser width: 500 height: 500 SystemPalette { id: myPalette; colorGroup: SystemPalette.Active } color: myPalette.window function setUrl(string){ webView.url = "file:///home/test.html"; webView.url = "file:///home/jakub/.mdictionary/html.html"; } FlickableWebView { id: webView width:parent.width height:parent.height anchors { top: headerSpace.bottom; left: parent.left; right: parent.right; bottom: parent.bottom } } Item { id: headerSpace; width: parent.width; height: 1} ScrollBar { scrollArea: webView; width: 8 anchors { right: parent.right; top: parent.bottom; bottom: parent.bottom } } ScrollBar { scrollArea: webView; height: 8; orientation: Qt.Horizontal anchors { right: parent.right; rightMargin: 8; left: parent.left; bottom: parent.bottom } } Button { id: button1 textInButton: "+" width: 20; height: 20; anchors.right: parent.right anchors.bottom: button2.top onClicked: webView.doZoom(1.05); } Button { id: button2 textInButton: "-" width: 20; height: 20; anchors.right: parent.right anchors.bottom: parent.bottom onClicked: webView.doZoom(.95); } }