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

Debug output/warnings when using PinchHandler

    XMLWordPrintable

Details

    • 8a5001247b250a7f7cb938743481b1405dcdc3a0 (qt/qtdeclarative/5.12)

    Description

      import QtQuick 2.12
      import QtQuick.Window 2.2
      
      Window {
          id: window
          objectName: "window"
          width: 600
          height: 800
          visible: true
      
          Rectangle {
              id: rect
              anchors.fill: parent
              color: "blue"
      
              PinchHandler {
                  id: handler
                  target: null//rect
                  onScaleChanged: {
                      print(scale, centroid.position, centroid.pressPosition, centroid.sceneGrabPosition, centroid.scenePosition, centroid.scenePressPosition)
                  }
              }
          }
      }
      

      When pinching, I see a lot of "reset: no points", and also some categorised logging debug output at the start and end of the drag:

      qt.quick.handler.pinch: activated with starting scale 1 rotation 0
      ...
      reset: no points
      ...
      qt.quick.handler.pinch: deactivated with scale 1 rotation 0

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            mitch_curtis Mitch Curtis
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes