Details
-
Bug
-
Resolution: Fixed
-
Not Evaluated
-
5.15.2
-
None
Description
Problem
On mobile (Tested with a Mi A2 Lite, android 10) when a ListView has a header with e.g. ListView.PullBackHeader headerPositioning, you are not able to scroll the list. If you set the header width half of the main width, you can scroll on the half side where the header isn't shown.
Minimal test setup
import QtQuick 2.15 import QtQuick.Controls 2.15 ApplicationWindow { id: root visible: true ListView{ anchors.fill: parent width: parent.width height: parent.height model: 100 boundsBehavior: Flickable.StopAtBounds headerPositioning: ListView.PullBackHeader header: Rectangle{ width: root.width height: 200 color: "green" } delegate: Rectangle{ width: ListView.view.width height: 20 MouseArea{ anchors.fill: parent onClicked: console.log("clicked") Text{ anchors.centerIn: parent text: qsTr("Element %1").arg(index) } } } } }
Attachments
Issue Links
- duplicates
-
QTBUG-89409 Unable to scroll listview by dragging / swiping if header is used
- Closed
- resulted from
-
QTBUG-74046 Events stealing happens for MouseArea in some cases (preventStealing == true)
- Closed
- links to