Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-65584

[Android] On QLineEdit after backspace the first character is painted and replaces with the second

    XMLWordPrintable

Details

    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            andysh Andy Shaw
            misalmel Mika Salmela
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes