Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-51969

WebEngineView's zoomFactor property doesn't work

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Done
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.6.1
    • Component/s: WebEngine
    • Environment:
      Qt for Device Creation 5.6, NXP board with touchscreen
    • Commits:
      d236c5a8a34803bda6115956184398b99dbba408

      Description

      To reproduce please run the code bellow:

      import QtQuick 2.5
      import QtQuick.Controls 1.4
      import QtWebEngine 1.2
      import QtQuick.Window 2.2
      
      ApplicationWindow {
        id: root
        objectName: "root"
        width: Screen.width
        height: Screen.height
        maximumHeight: height
        minimumHeight: height
        maximumWidth: width
        minimumWidth: width
        visible: true
        visibility: "FullScreen"
      
        WebEngineView {
          id: webview
          url: "http://www.google.fi"
          anchors.fill: parent
          zoomFactor:5;
          onZoomFactorChanged:{
              console.log("zoom")
              zoomFactor=1.0;
          }
        }
      }
      

      Result: the site is not zoomed and by pinching it on the touchscreen it is zooming
      Expected result: its zoomed 5x and when pinching starts it zooms to 1.

        Attachments

          Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Activity

              People

              Assignee:
              mibrunin Michael Bruning
              Reporter:
              qtcomsupport Qt Support
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes