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

Android: Scroll issues when using Control as delegate in Listview

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.12.1
    • Quick: Controls 2
    • Android

    Description

      Build Configuration:

      • Kit: Android for arm64-v8a (Clang Qt 5.12.1 for Android ARM64-v8a)
      • Build: Affects both Debug and Release
      • NDK-Version: r18b
      • SDK-Platform-Tools: 28.0.1
      • SDK-Build-Tools: 28.0.3
      • SDK-Tools: 26.1.1
      • SDK-Platform: Android 8.1 (API 27)

      Minimal Code Example:

      import QtQuick 2.9
      import QtQuick.Controls 2.2
      
      ApplicationWindow {
          visible: true
          ListView {
              anchors.fill: parent
              spacing: 100
              model: 10
              delegate: Control {
                  width: parent.width
                  height: 100
                  contentItem: Rectangle {
                      color: "#000000"
                  }
              }
          }
      }
      

      Expected Behavior:
      Scrolling the ListView works at each position in the ListView

      Actual Behavior:
      You are only able to scroll the ListView when touching in the space between the delegates. When you touch a delegate and try to scroll the ListView, nothing happens.

      Guess:
      It seems that the Control is stealing the mouse-events so that the underlying ListView can not catch them. Same thing is happening when using a Flickable with Column and Repeater.

      Additional Information:
      When compiling the software under Windows with the Kit "Desktop Qt 5.12.1 MinGW 64 bit" the application has the expected behavior and the bug is not present.

      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
            christian.fischerauer Christian Fischerauer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes