Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt for Python
  4. pyside6 QLineEdit, QTextEdit Korean combination error
Forum Update on Monday, May 27th 2025

pyside6 QLineEdit, QTextEdit Korean combination error

Scheduled Pinned Locked Moved Solved Qt for Python
7 Posts 2 Posters 808 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • F Offline
    F Offline
    Freemize
    wrote on last edited by
    #1

    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.

    66fe47d1-9058-4b4f-bdea-bd5b56b4346e-image.png

    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())
    
    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi,

      Do you have the same issue with PySide2 ?

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • F Offline
        F Offline
        Freemize
        wrote on last edited by Freemize
        #3

        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.

        0c29f3ef-1eb9-4e0b-9334-6b4d1c1b9e11-image.png

        However, in the example using QGraphicsItem, I confirmed that the combination of Korean double consonants is 'Possible'.

        009a9779-a0b6-42b6-9426-a47e0376be14-image.png

        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.

        1 Reply Last reply
        0
        • SGaistS Offline
          SGaistS Offline
          SGaist
          Lifetime Qt Champion
          wrote on last edited by
          #4

          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.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • F Offline
            F Offline
            Freemize
            wrote on last edited by Freemize
            #5

            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

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #6

              Thanks for the detailed report !

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0
              • F Offline
                F Offline
                Freemize
                wrote on last edited by
                #7

                This issue is resolved in pyside6.3.1 version.
                thank you.

                1 Reply Last reply
                1

                • Login

                • Login or register to search.
                • First post
                  Last post
                0
                • Categories
                • Recent
                • Tags
                • Popular
                • Users
                • Groups
                • Search
                • Get Qt Extensions
                • Unsolved