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

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

    XMLWordPrintable

Details

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

    Description

      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)
              }
          }
      }
      

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes