Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.15.6, 5.15.8, 6.2.0, 6.2.4, 6.4.0 RC1
Description
A simple text field does not react on the textEdited signal properly:
TextField { id: textField placeholderText: 'Enter text here' onTextEdited: { console.error('onTextEdited: ' + textField.text) } }
If you run that (or the attached example code) on an android device with attached adb console, you can observe the following issues:
- Text is not updated while entering text, except you're pressing non letter keys like space, dot, questionmark, etc. (might be related to QTBUG-92371)
- Just placing the text cursor inside the text field produces textEdited events
- Even more bad: placing the text cursor inside the text field produces loads of alternating textEdited signals. I.e. when entering the text "this is buggy" and you position the text cursor on "is", you're getting one output "this is buggy" and "this buggy", while "is" is underlined in the input field. Besides the fact that this is no edit, you cannot distinguish which of the events has valid text. Sometimes the loop stops after a few dozens of signals, sometimes it doesn't seem to stop.
Expected behaviour: textEdited is fired once when the text changes.
This is reproducible with various Android devices starting with an Nexus 10/Android 5 tablet up to an MI A3/Android 11 phone.
Attachments
Issue Links
- relates to
-
QTBUG-40803 On mobile devices, tablets and smartphones, TextInput must receive keys from its virtual keyboard
- Reported