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

QGraphicsView::setTransformationAnchor(AnchorUnderMouse) drifts when zooming with trackpad

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12, 6.2.0 RC2
    • Fix Version/s: None
    • Component/s: Widgets: GraphicsView
    • Labels:
      None
    • Platform/s:
      macOS, Windows

      Description

      When QGraphicsView is set to AnchorUnderMouse, zooming in and out with the trackpad causes the reference scene position (under the cursor) to drift. This issue does not occur when zooming in and out with the mouse wheel.
      This effect seems to be even more pronounced on Mac OS and/or if inertial scrolling is enabled.

      Steps to reproduce this issue:
      1 - Open the "40000 Chips" qt example.
      2 - Press and hold Ctrl to enable zoom while scrolling
      3 - Scroll up and down many times using two fingers on the trackpad/touchpad and observe the scene position under the mouse.
      4 - The scene drifts/pan sideways as we do that many times

      Expected behaviour:
      4 - Just like when using the mouse wheel, the position under the mouse should stay constant

      May be related (but not the same) to https://bugreports.qt.io/browse/QTBUG-73033

        Attachments

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

          Activity

            People

            Assignee:
            bibr Andreas Aardal Hanssen
            Reporter:
            ahi Adriel Jr.
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes