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

PinchHandler target scale is jumpy on Windows

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.1
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      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).
    • Platform/s:
      Windows

      Description

      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.

       

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes