Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
5.14, 5.15, 6.4.2
-
None
-
JDK8/JDK11 + NDK23~NDK28 + Gradle5~Gradle7
Description
All text input controls of QML have a serious problem on Android, which will cause the application crashed: after entering the application, click the text input box, then click the Backspace of the keyboard, then click the Back key of the phone twice, then click the text input box again, click the Backspace of the keyboard again, and then click the Back key of the phone again, and the application will flash back (Fatal 6 or Fatal 11 will be generated during debugging), It exists in all Qt5.14, Qt5.15 and Qt6 versions, and has tested JDK8, 11, and NDK23~28, Gradle 5~7, and Android 6~12. This problem exists: relevant code:
import QtQuick 2.14
import QtQuick.Controls 2.14
import QtQuick.Window 2.14
Window {
id: rootWindow
width: 640
height: 480
visible: true
title: qsTr("Hello World")
Column {
anchors.fill: parent
focus: true
TextInput {
width: parent.width
Keys.onEscapePressed:
{ event.accepted = true; }Keys.onBackPressed: { event.accepted = true; }
}
Keys.onEscapePressed:
{ event.accepted = true; }Keys.onBackPressed: { event.accepted = true; }
}
}