Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.9.3, 5.10.0, 5.12.0
-
Qt 5.10.0 + Android
-
-
cf184f1dd4e6c17b4c1a8a915cf9c2613739467e (qt/qtbase/5.12)
Description
On QLineEdit if you press backspace too many times, the first character you type is painted and then replaced with the second character. Construct the QLineEdit like this
QLineEdit* edt1 = new QLineEdit(centralWidget);
edt1->setInputMethodHints(Qt::ImhNoPredictiveText);
The input method hint is the key here to get the bug. And second note is that you press the backspace at least one extra. See the screenshots. Probably the extra backspace moves the text selection pointer too far to the left and this leads to painting.