QML Quick2 WebView and zoom in/out
-
A WebView element now renders the complete page and fits it onto the width set on the WebView. It implements flicking up/down. Is it still possible to flick right/left ? Suppose we have a limited screen, how can we set the zooming of the WebView element ? It seems there is no example for Quick2 how to do this.
-
Any solution for that? been looking for hours.
I have:@
import QtQuick 2.0
import QtWebKit 3.0Rectangle {
width: 300; height: 300Text {
anchors.fill: parent
anchors.leftMargin: parent.width / 2
text: "<h1>title</h1>"
}
WebView {
anchors.fill: parent
anchors.rightMargin: parent.width / 2
url: "file:///Users/sandy/test.html"
}
}
@where test.html contains : "<h1>title</h1>"
and I want both side to behave the same (like Text) when I resize the window. With Qt5.1.1 the WebView scaling change as I resize. So basically, I want to have a WebView that behaves like a browser window or as it was in Qt4.8.x.