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

Allow to disable mouse panning in ScrollView

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 6.7.2
    • None
    • All
    • 252195eb0 (dev), 39e8c511f (6.8)

      We use ScrollView a lot. However, we recently found a problem with ScrollView and the mouse interaction. The problem comes when the ScrollView contains items that interact with the mouse: The items loose mouse focus, when the mouse is moved vertically!

      A more detailed description:

      • Our item is derived from QQuickPaintedItem, and overrides the mouse events for click and move.
      • The first mouse (left) click is always received correctly by our item, and accepted by us.
      • Mouse move (while button pressed) is still detected ok for a short while, as long as the mouse is moved mostly horizontally.
      • As soon as the mouse is moved more vertically, no more mouse events are received by our item.
      • While we observe the problem, the ScrollView does not scroll, but this is most probably because the ScrollView is under-full (and there is nothing to scroll)

      Note: Our item does call accept() on all mouse events that it receives, so that they should not be forwarded to the ScrollView.

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

            lexcaz Alexei Cazacov
            emmenlau Mario Emmenlauer
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes