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

QTabBar doesn't accept scroll events, resulting in janky behaviour in scrollview

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 5.15.7, 6.2.3
    • None

      The QTabBar handles scroll events, but doesn't call QEvent::accept on the QWheelEvent*, instead opting to call into the superclass QWidget::wheelEvent, which instead causes QEvent::ignore to get called on the event. This results in events being propagated to other widgets as well, which isn't desirable.

      For example, trying to scroll on a QTabBar widget inside a QScrollArea results in the wheel event propagating to the scroll area from the inside tabbar, resulting in both scrolling and the tab switching. Expected behaviour is that the QTabBar accepts the events, preventing the scroll area from scrolling on the same event that the QTabBar is using to change tabs.

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

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            appadeia Janet Black
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes