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

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12, 6.2.0 RC2
    • Widgets: GraphicsView
    • None
    • macOS, Windows
    • d99b0cfed (dev), 4f1752a6b (6.7), f7add7ad0 (6.6)

    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

        For Gerrit Dashboard: QTBUG-96879
        # Subject Branch Project Status CR V

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes