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

QLineEdit password echo mode odd behavior with composite characters

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 4.7.4
    • None
    • Ubuntu 11.10, Qt 4.7.4
      Ubuntu 12.04 64-bit, Qt 4.8.3 (77c7ff8550e99e3ed27a9c67d689e681e1067180)

    Description

      I think I found an odd behavior in QLineEdit that can be considered a bug.
      With keyboard layout set to English International or English Alternative International in order to be able to type accented or composite characters like áéíóú (that is, an ' followed by an 'a' and so on)

      Scenario A:
      1. Instantiate a QLineEdit
      2. Leave echoMode unchanged as default ("Normal").
      3. Type accented characters, ie. "áéí".
      4. QLineEdit text() method returns correct text: "áéí".

      Scenario B:
      1. Instantiate a QLineEdit
      2. Set echoMode to "Password" right after instantiation and before any text has been entered in this component.
      3. Type accented characters, ie. "áéí".
      4. QLineEdit text() method returns INCORRECT text: "'a'e'i".

      Scenario C:
      1. Instantiate a QLineEdit
      2. Leave echoMode unchanged ("Normal")
      3. Type some text
      4. Set echoMode to QLineEdit::Password
      5. Type accented characters, ie. "áéí".
      6. QLineEdit text() method returns CORRECT text: "áéí".

      Scenario C can be accomplished by connecting the QLineEdit::textChanged(QString) signal to some slot in wich QLineEdit::setEchoMode(QLineEdit::Password) is invoked.

      Attachments

        1. testcase.png
          testcase.png
          42 kB
        2. TestCase.zip
          4 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            peppe Giuseppe D'Angelo
            dschulz Diego Schulz
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes