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

Android: Scroll issues when using Control as delegate in Listview

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 5.12.1
    • Fix Version/s: None
    • Component/s: Quick: Controls 2
    • Environment:
    • Platform/s:
      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

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            christian.fischerauer Christian Fischerauer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes