Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.11.1, 5.12.0
-
None
-
Windows, QtCreator 4.7.1, MSVC2017 x64
Description
When pressing left mouse button and moving application print "qml: pressed: true" as expected. But if you start scrolling with wheel or touchpad, "pressed" state randomly gone and it starts print "qml: pressed: false" while left mouse button still pressed.
See code below:
import QtQuick 2.9 import QtQuick.Controls 2.2 ApplicationWindow { visible: true width: 640 height: 480 title: qsTr("Scroll") ScrollView { anchors.fill: parent ListView { width: parent.width model: 200 delegate: ItemDelegate { text: "Item " + (index + 1) width: parent.width MouseArea { anchors.fill: parent hoverEnabled: true acceptedButtons: Qt.LeftButton onPositionChanged: { console.log("pressed:",pressed) } } } } } }
Project is attached