Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.13.2
-
None
Description
Edited: Analysis and Solution Idee in Comments
HUAWEI Tablet does not support TOUCH as expected by TapHandler with GesturePolicy set to ReleaseWithinBounds. The pressed flag is set as expected, but the active flag (explicit grab) is not working reliable.
Used device: HUAWEI MediaPad M3 Lite 10 (BAH-L09 / Android 7.0, EMUI 5.1.3)
iPhones, Pixel and Sony Android Phones all work as expected.
import QtQuick 2.13 import QtQuick.Window 2.13 Window { visible: true; width: 100; height: 100 Rectangle { anchors.fill: parent color: { if(tapHandler.active) return "red"; if(tapHandler.pressed) return "yellow"; return "green"; } TapHandler { id: tapHandler gesturePolicy: TapHandler.ReleaseWithinBounds } } }
Video attached
Left is a Pixel 3. Right is the HUAWEI. Expected is Green-Red. Yellow should never be visible.
Attachments
Issue Links
- duplicates
-
QTBUG-76954 When trying to interact with multiple TapHandlers using different points at the same time will cause the first to not be active when tapping the second
- Closed