pyside6 QLineEdit, QTextEdit Korean combination error
-
pyside6 There is a problem with Korean input when using QLineEdit and QTextEdit.
There is a problem that the Korean combination with ‘ㄲㅗㄹ’ is not possible when entering ‘꼴’ with the keyboard.
Please help from Qt developers.
Here is the code I tested:
import sys from PySide6.QtCore import Qt from PySide6.QtWidgets import (QApplication, QGridLayout, QLabel, QGridLayout, QLineEdit, QTextEdit, QWidget) class AddressBook(QWidget): def __init__(self, parent=None): super().__init__(parent) name_label = QLabel("Name:") self._name_line = QLineEdit() address_label = QLabel("Address:") self._address_text = QTextEdit() main_layout = QGridLayout() main_layout.addWidget(name_label, 0, 0) main_layout.addWidget(self._name_line, 0, 1) main_layout.addWidget(address_label, 1, 0, Qt.AlignTop) main_layout.addWidget(self._address_text, 1, 1) self.setLayout(main_layout) self.setWindowTitle("Simple Address Book") if __name__ == '__main__': app = QApplication(sys.argv) address_book = AddressBook() address_book.show() sys.exit(app.exec())
-
Hi,
Do you have the same issue with PySide2 ?
-
I am very grateful for your immediate attention.
I am a novice pyside user.
I have no experience with pyside2, so I can't give an accurate answer.
However, another pyside6 user in Korea recognized this as a bug and is hoping for improvement.
Example https://techclass.tistory.com/16 (Use Google Translate ^^)Instead I provide other information from pyside6.
In QLineEdit, QTextEdit, QPlainTextEdit, and QTableWidget, there is a problem with the combination of Korean double consonants.However, in the example using QGraphicsItem, I confirmed that the combination of Korean double consonants is 'Possible'.
And I tested QLineEdit to receive event as 'InputMethodEvent' and to print 'preeditString' and 'commitString'.
When 'ㄲ' is input, preeditString and commitString are print as follows.preeditString= ㄲ
commitString=
preeditString=
commitString=That is, it was confirmed that the event was received Twice when 'ㄲ' was input.
(Usually, if you input ‘ㄱ’, you will receive it only Once.)
So, I expect that the second preeditString is null(??) and cannot be combined because the two are sequentially input.I hope my information helps a little bit in solving the problem.
Once again, thank you very much for your interest. -
With all these findings, I would recommend that you check the bug report system to see if there's already something related to your issue. If not, please open a new ticket providing your findings and example scripts.
-
Following your suggestion, I found similar issues and filed a new bug report.
Thanks again for your help.-
similar issues
QTCREATORBUG-27476 -
new issue number
https://bugreports.qt.io/browse/PYSIDE-1953?jql=project %3D PYSIDE
-
-
Thanks for the detailed report !