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

Windows: When composing a word with Japanese ime using QLineEdit, the editingFinished signal is emitted before the QLineEdit's text() is updated if the editing is finished through application focus loss

    XMLWordPrintable

Details

    Description

      When composing a word with japanese ime using QLineEdit, when the focus from application is lost through activating another program, the editingFinished signal is emitted before the text is actually updated in the QLineEdit. This is a problem if you connect to the QLineEdit's editingFinished signal, you cannot retrieve the current text that is in QLineEdit. Same issue does not reproduce when using alphabets, or if composing the word is finished for that word.

      Composing a word with japanese ime works such as:
      1) Input characters which are converted to japanese hiragana/katakana
      2) Optionally press spacebar to convert the hiragana/katakana to chinese kanji
      3) Press enter to end composing the word

      This issue is reproducible only, if before step 3 while still composing, the focus is lost through activating another application. If QLineEdit loses focus to another widget in the same application, the issue does not reproduce.

      Steps to reproduce:

      • Run attached sample
      • Run any other program at the side, for example notepad
      • Switch to Japanese ime (ALT ~)
      • Enter some text, for example 3 times a ("あああ") (Key 'a')
      • Directly activate the other program (notepad) while the Japanese word is being composed (has dashed underline)
      • EXPECTED: The label above QLineEdit updates to the same text as the QLineEdit when the editingFinished signal is emitted for QLineEdit
      • ACTUAL: The label does not show the newly composed word (until the editingFinished signal is called next time)

      Attachments

        For Gerrit Dashboard: QTBUG-60244
        # Subject Branch Project Status CR V

        Activity

          People

            kleint Friedemann Kleint
            jussi_witick Jussi Witick
            Votes:
            1 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There is 1 open Gerrit change