Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.1.0 Beta 1, 5.1.0 , 5.2.0
-
None
-
-
425af59f534ed8a0f4bc7a77a1f83e4d1e2e2bdc
Description
PressAndHold signal does not reach MouseArea on Android.
In QtQuick1 module src/declarative/graphicsitems/qdeclarativemousearea.cpp by pressing event starts the timer with 800 ms timeout (if there is an connected handler for PressAndHold signal). By triggering the timer the appropriated signal emits.
However, the timer never triggered because after 700 ms from the android plugin coming events MouseReleased and MouseClicked.
Also:
QML MouseArea Element contain property wasHeld : bool
In the doc we can read: "This property is true if the mouse button has been held pressed longer the threshold (800ms)."
This property has not working properly as well.
In our program, we were caught this event by tracking button property in MouseEvent (in the case of PressAndHold clicked event is sent with a button property Qt.NoButton). I would like to understand whether this workaround will work after fix this bug.
In the attachments you can found the simple QML project with a one QML file and only one MouseArea (with appropriate handlers) in it.
Attachments
Issue Links
- depends on
-
QTBUG-31644 Android: longPress handling breaks mouse events
- Closed