Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
5.11.0
-
Android 7.1.1 x86 emulator.
Android 8.1 arm.
Description
import QtQuick 2.7 import QtQuick.Controls 2.0 ApplicationWindow { visible: true width: 320 height: 640 Column { width: 200 //TextField { TextInput { width: parent.width height: 100 text: 'def' onTextChanged: console.log(text) id: te } Text { text: te.text } Text { text: "Try appending 'ghi' and prepending 'abc', see what appears" } } }
Not sure if this is a regression or not. I do not remember observing this previously, but I might have avoided this exact usecase.
On Android, if you use the onscreen keyboard then while the keyboard is open, `text` is set to an empty string and triggers the corresponding event/bindings.
In Android emulator, if you use hardware keyboard (there are those on Android), the text is set to gibberish, i.e. to the part of the text that was currently entered. Also, the in the text input the text entered from the hardware keyboard is inserted into a wrong position.
This affects both QtQuick TextField and QtQuick.Controls 2 TextInput.
Desktop works fine, iOS works fine.