Qt6.8 QML ListView Bug: Cannot click item in the list while scrolling ListView
-
Issue
-
When I drag a list with the mouse or scroll through a list with the scroll wheel, I cannot immediately click on the list items and usually need to wait about 0.5 seconds for the items in the list to accept the left mouse button event.
-
I think this is a bug. When I scroll through the list, the mouse click event for a short period of time is still judged as scrolling. I tried adjusting the 'pressDelay' property, but it still hasn't eased.
-
My current solution is to disable dragging the list with the mouse or use Qt6.7 version
Qt Version
This issue occurred between Qt6.8 ~ Qt6.10, but it did not appear in Qt6.7.
Simple Example
import QtQuick import QtQuick.Controls //disable mouse events to prevent the list from scrolling due to mouse clicks //acceptedButtons: Qt.NoButton ListView{ anchors.fill: parent //There are enough items to require scrolling through the list model:ListModel{} ScrollBar.vertical: ScrollBar {} delegate:Rectangle{ width: ListView.view.width height: 40 border.width: 1 border.color: "blue" MouseArea { anchors.fill: parent onClicked:{ console.log("Item onClicked") } } } } -
-
This bug has been fixed in Qt6.10.1
https://bugreports.qt.io/browse/QTBUG-135931
Reg[6.8.2-6.9.0]ListView containing AbstractSeries does not scroll on Drag -
J Janmean has marked this topic as solved