Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.12.5, 5.13.1, 5.15.1
-
iOS 13.0 and 13.1
Description
If there is a MouseArea that partly covers a TextInput and the TextInput has active focus, tapping on the MouseArea doesn't have any effect. It looks like the TextInput "steals" the tap events from the MouseArea.
Here's a simple QML file to reproduce the bug:
import QtQuick 2.12 import QtQuick.Window 2.12 Window { id: appWin visible: true color: "#232323" TextInput { id: textField width: parent.width anchors.centerIn: parent } Rectangle { id: rectangle width: 100 height: 100 anchors.centerIn: parent color: "#0000ff" MouseArea { anchors.fill: parent onClicked: { console.log(parent.color) parent.color = parent.color == "#0000ff"? "#ff0000" : "#0000ff" } } } }
This only happens on iOS. All other platforms I have tested (Windows MSVC, macOS, Android (Arm 32 and Arm 64) do not show the bug.
Attachments
Issue Links
- depends on
-
QTBUG-83818 QEvent::InputMethodQuery events don't give the application enough control over text selection handles
- Reported
- is duplicated by
-
QTBUG-81766 QML Button not clickable when TextField below it has focus on iOS
- Closed