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

Control inside a ListView doesn't allow flicking

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.15.2
    • Quick: Controls 2
    • None
    • Linux/X11, Windows

    Description

      When placing Controls inside a ListView, flicking on a touch screen doesn't work; scrolling with the mouse wheel does work, though.

      When I instantiate a PointHandler inside the control, swiping seems to work for some reason (I have no idea whether the handler makes events being routed to the list view instead or so):

       

      import QtQuick 2.12
      import QtQuick.Controls 2.12
      
      ListView {
          width: 100
          height: 500
          model: 10
          spacing: 10
          delegate: Control {
              width: 100
              height: 100
              // uncomment this line to make scrolling work:
      //        PointHandler {}
              contentItem: Rectangle {
                  width: 100
                  height: 100
                  color: "red"
              }
          }
      }
      
      

      File attached to reproduce the issue with qmlscene.

       

       

      scroll-bug.qml

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            peter-h-zeiss Peter H
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes