Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
6.4.3, 6.5.0 RC, 6.5.0
-
Microsoft Windows 10 (10.0.19045 Build 19045)
DELL XPS 15 7590 with Touch Screen
-
-
d7fac6923 (dev), 398926db4 (6.5), 35b551118 (dev), b25c4d6a0 (6.6), ff5baf76e (6.5.2), 226ca47dd (6.5)
Description
1. If, using the following code, you tap your finger quickly (touch screen) on the green rectangle (to trigger double click) mouse area hangs (stays in pressed state and can no longer be used):
import QtQuick import QtQuick.Window import QtQuick.Controls Window { width: 640 height: 480 visible: true Rectangle { anchors.fill: parent color: mouseArea.pressed ? "red" : "orange" Popup { visible: true closePolicy: Popup.NoAutoClose width: 200 height: 200 contentItem: MouseArea { id: mouseArea anchors.fill: parent onClicked: console.debug("onClicked") onDoubleClicked: console.debug("onDoubleClicked") onPressed: console.debug("onPressed") onReleased: console.debug("onReleased") onPressAndHold: console.debug("onPressAndHold") onCanceled: console.debug("onCanceled") } background: Rectangle { color: "green" } } } }
2. Similar freezing of mousearea in pressed state can be achieved even if it is very simple code:
import QtQuick import QtQuick.Window import QtQuick.Controls Window { width: 640 height: 480 visible: true Rectangle { anchors.fill: parent color: mouseArea.pressed ? "red" : "orange" MouseArea { id: mouseArea anchors.fill: parent onClicked: console.debug("onClicked") onDoubleClicked: console.debug("onDoubleClicked") onPressed: console.debug("onPressed") onReleased: console.debug("onReleased") onPressAndHold: console.debug("onPressAndHold") onCanceled: console.debug("onCanceled") } } }
In this case, it is best to quickly alternate tapt with two fingers to provoke this situation.
It looks like released will be not triggered and this goes into press and hold state (See logs for more information).
It is worth noting that the fingers were tapped quickly and there is no hold there.
This error can prevent the execution of critical functionality and is not particularly difficult to provoke.
This is also a regression - in Qt 6.3.1 these problems do not occur.
Attachments
Issue Links
- is duplicated by
-
QTBUG-109393 [Regr: 6.3.1->6.3.2] iPad: DoubleClicking in MouseArea + Popup breaks
- Closed
- resulted from
-
QTBUG-102625 [REG 5.15 -> 6.0] Double click event does not fire when using DragHandler as a child of Window in Qt6
- Closed
For Gerrit Dashboard: QTBUG-112434 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
472642,9 | QQuickItem: item stays pressed after DoubleClicks | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
473665,2 | QQuickItem: item stays pressed after DoubleClicks | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
484405,6 | MouseArea: don't ignore double-click events | dev | qt/qtdeclarative | Status: MERGED | +2 | 0 |
486520,4 | MouseArea: don't ignore double-click events | 6.5.2 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
486521,5 | MouseArea: don't ignore double-click events | 6.5 | qt/qtdeclarative | Status: MERGED | +2 | 0 |
486522,2 | MouseArea: don't ignore double-click events | 6.6 | qt/qtdeclarative | Status: MERGED | +2 | 0 |