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

    • Android
    • cf184f1dd4e6c17b4c1a8a915cf9c2613739467e (qt/qtbase/5.12)

      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.

        1. image-2018-01-05-14-28-53-424.png
          96 kB
          Mika Salmela
        2. image-2018-01-05-14-28-53-482.png
          92 kB
          Mika Salmela
        3. qtbug65584.zip
          2 kB
          Mika Salmela
        For Gerrit Dashboard: QTBUG-65584
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes