I’m trying to use WebView in WebKit 3.0 in my Qt Quick 2 project. This loads:
ApplicationWindow {
visible: true
width: 300
height: 200
WebView {
url: "http://www.google.com"
anchors.fill: parent
}
}
But the webpage is terribly small:
I would expect the webpage to keep its size, with WebView providing scrollbars to allow scrolling, like normal browsers do. Is there any way I can change this behaviour? I don’t see anything useful in the WebKit 3.0 documentation [qt-project.org]
Edit: I’m using Qt 5.3 provided by Homebrew on OS X.
↧