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

PinchHandler target scale is jumpy on Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P2: Important P2: Important
    • None
    • 6.2.1
    • None
    • Windows 11 with Qt 6.2.1 on a Lenovo Yoga 920 touchscreen.

      (On Linux Wayland Qt 6.2.1 the code above works fine).
    • Windows

      I've tested this on Windows 11 with Qt 6.2.1. When PinchHandler is used the scale (and activeScale) property is incorrectly reported.

      For example with the code below:

      import QtQuick
      import QtQuick.Controls
      
      ApplicationWindow {
          id: root
          visible: true
          width: 640
          height: 480
          title: qsTr("Image Zoom Example")
      
          Image {
              source: "test.jpg"
      
              PinchHandler{
                  minimumRotation: 0
                  maximumRotation: 0
                  minimumPointCount: 2
                  maximumPointCount: 2
              }
          }
      
      }
      
      

      when the user pinches on the screen, the image isn't scaled smoothly but there are intermittent jumps that causes "flashing" because the scale value of the pinch handler jumps around during the pinch events.

       

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            daljit97 Daljit Singh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes