Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.4.1
-
None
-
Android x86 emulator
Description
The attached project contains the following code:
ApplicationWindow {
visible: true
TextArea {
id: textArea
anchors.top: parent.top
anchors.bottom: textField.bottom
anchors.left: parent.left
anchors.right: parent.right
}
TextField {
id: textField
anchors.left: parent.left
anchors.right: parent.right
anchors.bottom: parent.bottom
text: textArea.text
}
}
To reproduce:
1. Open and start the project;
2. Focus the TextArea directly - do not focus the TextField before that or the bug won't occur;
3. Start typing using the Android virtual keyboard - do not use the hardware keyboard if running an emulator;
The text of the TextField does not change even though it is bound to the text of the TextArea. Now:
4. Focus the TextField and then focus the TextArea again;
5. Type again using the virtual keyboard - now it works properly.
Possibly related: in an emulator (mine is Genymotion) type some text using the virtual keyboard, then using the hardware keyboard. Now type some more using the virtual keyboard: all manners of weird behaviour start appearing: the piece of text typed with the hardware keyboard is moved to the front, the backspace on the hardware keyboard does not delete the piece of text entered with the virtual keyboard, etc. Some of that also happens with just a TextField. Whatever the case, this part is not as important as the issue described with the steps above.
There's some chance all of this is related to https://bugreports.qt.io/browse/QTBUG-44526 .