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

Quick Controls 2 ComboBox leaks wheel events if index does not change

    XMLWordPrintable

    Details

      Description

      When having wheelEnabled: true in the controls 2 ComboBox to enable scrolling items with mouse wheel, if the index does not change, the wheel events are leaked to the parent.

      The ComboBox inherits QML Control which does block wheel event as stated in the documentation:

      Note: Care must be taken when enabling wheel events for controls within scrollable items such as Flickable, as the control will consume the events and hence interrupt scrolling of the Flickable.
      

      But despite this, the ComboBox sets the event to not accepted state if the index did not actually change:

      event->setAccepted(d->currentIndex != oldIndex);
      

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              jussi_witick Jussi Witick
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes