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

Impossible to scroll ListView by touch screen if its delegate is Control

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P2: Important P2: Important
    • None
    • 5.12.4
    • None
    • Linux/Wayland, Windows
    • Bug Fixing Week Q2/2020

      The problem is that if you try to use the Control somewhere in your delegate, it doesn't allow to scroll the ListView. This is related to touch screen only, mouse works well.

      Here is the way to reproduce the issue:

      ListView {
          anchors.fill: parent
      
          model: 100
      
          delegate: Control { // Item works approriately, but Control doesn't
              width: parent.width
              height: 50
      
              background: Rectangle {
                  color: Qt.rgba(13 * index % 100 / 100,
                                 41 * index % 100 / 100,
                                 71 * index % 100 / 100)
              }
          }
      }
      

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

            mitch_curtis Mitch Curtis
            danilpinchuk Danil Pinchuk
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes