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

QPinchGesture::totalScaleFactor can be infinite

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.5.0 Alpha
    • Fix Version/s: 5.5.0 Beta
    • Labels:
      None
    • Environment:
      Linux

      Description

      This happens in the imagegestures example when trying to do the pinch gesture on a Wacom touch device (Intuos).

      [     8.700 D] ImageWidget::pinchTriggered - pinchTriggered(): rotate 0 last 0 total 0 delta 0 -> 0
      [     8.700 D] ImageWidget::pinchTriggered - pinchTriggered(): zoom by 1 -> 1
      [     8.759 D] ImageWidget::gestureEvent - gestureEvent(): QGestureEvent((QPinchGesture(state=Qt::GestureState(GestureUpdated),hotSpot=QPointF(2937,568),totalChangeFlags=QFlags(0x1|0x2|0x4),changeFlags=QFlags(0x1|0x2|0x4),startCenterPoint=QPointF(0,0),lastCenterPoint=QPointF(2937,568),centerPoint=QPointF(2937,567.791),totalScaleFactor=inf,lastScaleFactor=1,scaleFactor=inf,totalRotationAngle=-90,lastRotationAngle=0,rotationAngle=-90)))
      [     8.759 D] ImageWidget::pinchTriggered - pinchTriggered(): rotate -90 last 0 total -90 delta -90 -> -90
      [     8.759 D] ImageWidget::pinchTriggered - pinchTriggered(): zoom by inf -> inf
      [     8.780 D] ImageWidget::gestureEvent - gestureEvent(): QGestureEvent((QPinchGesture(state=Qt::GestureState(GestureUpdated),hotSpot=QPointF(2857.37,605.636),totalChangeFlags=QFlags(0x1|0x2|0x4),changeFlags=QFlags(0x1|0x2|0x4),startCenterPoint=QPointF(0,0),lastCenterPoint=QPointF(2937,567.791),centerPoint=QPointF(2897.18,586.609),totalScaleFactor=inf,lastScaleFactor=inf,scaleFactor=211.059,totalRotationAngle=-25.5411,lastRotationAngle=-90,rotationAngle=-25.5411), QPanGesture(state=Qt::GestureState(GestureStarted),hotSpot=QPointF(2937,568),lastOffset=QPointF(0,0),offset=QPointF(-40,19),acceleration=0,delta=QPointF(-40,19))))
      [     8.780 D] ImageWidget::panTriggered - panTriggered(): QPanGesture(state=Qt::GestureState(GestureStarted),hotSpot=QPointF(2937,568),lastOffset=QPointF(0,0),offset=QPointF(-40,19),acceleration=0,delta=QPointF(-40,19))
      [     8.780 D] ImageWidget::pinchTriggered - pinchTriggered(): rotate -25.5411 last -90 total -25.5411 delta 64.4589 -> -25.5411
      [     8.780 D] ImageWidget::pinchTriggered - pinchTriggered(): zoom by 211.059 -> inf
      

        Attachments

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

          Activity

            People

            Assignee:
            srutledg Shawn Rutledge
            Reporter:
            srutledg Shawn Rutledge
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes