Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

QML Quick2 WebView and zoom in/out

$
0
0
Any solution for that? been looking for hours. I have: import QtQuick 2.0 import QtWebKit 3.0   Rectangle {     width: 300; height: 300    Text {   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.

Viewing all articles
Browse latest Browse all 4972

Trending Articles