Details
-
Bug
-
Resolution: Cannot Reproduce
-
P2: Important
-
None
-
5.9.0 Beta 1, 5.9.0, 5.9.5, 5.11.0 Beta 4
-
Windows
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 |
209151,2 | WIP: QLineEdit: emit editingFinished when lost focus and having preedit string in IME | dev | qt/qtbase | Status: NEW | -2 | 0 |