Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. QLineEdit doesn’t accept CJK symbols or punctuation on Mac OS X
Qt 6.11 is out! See what's new in the release blog

QLineEdit doesn’t accept CJK symbols or punctuation on Mac OS X

Scheduled Pinned Locked Moved General and Desktop
7 Posts 3 Posters 3.4k Views 1 Watching
  • 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
    flyinflash
    wrote on last edited by
    #1

    QLineEdit doesn't accept CJK punctuation that I type, is it a bug?

    The CJK symbols or punctuation
    http://en.wikipedia.org/wiki/Template:Unicode_chart_CJK_Symbols_and_Punctuation

    test environment:

    • Platform: Mac OS X 10.6
    • Qt version: 4.7.4

    Qt install via MacPorts

    1 Reply Last reply
    0
    • A Offline
      A Offline
      alban.lefebvre
      wrote on last edited by
      #2

      I'm not sure if it's a bug or not. But you should look into writing your own QValidator for your QLineEdit, which would accept Unicode strings.

      1 Reply Last reply
      0
      • C Offline
        C Offline
        Chris H
        wrote on last edited by
        #3

        It works for me in 10.7.

        1 Reply Last reply
        0
        • F Offline
          F Offline
          flyinflash
          wrote on last edited by
          #4

          Are you sure you do type CJK punctuation, not Copy-Paste ?

          please also attach your Qt version and installation way (via MacPorts or flink?).

          Thx

          [quote author="Chris H" date="1323977205"]It works for me in 10.7.[/quote]

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

            I'm test it in PySide (a python binding for Qt) in fact.

            In latest stable PySide, it could display CJK punctuation, sth looks like

            @qlineedit.setText("unicode punctuation")@

            but it doesn't accept user typing.

            [quote author="alban.lefebvre" date="1323970818"]I'm not sure if it's a bug or not. But you should look into writing your own QValidator for your QLineEdit, which would accept Unicode strings.[/quote]

            1 Reply Last reply
            0
            • C Offline
              C Offline
              Chris H
              wrote on last edited by
              #6

              Sorry, I misunderstood, I was simply pasting in the characters. Are you trying to use the "Unicode Hex Input" method? I was unable to get that to work.

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

                See the detail in following picture

                !http://paste.ubuntu.org.cn/i109210(demo)!

                http://paste.ubuntu.org.cn/i109210

                In the terminal, the former is English punctuation \u002C,
                the later is CJK punctuation \uFF0C.

                I can type both former and later via "Edit -> Special Characters" in non-Qt application(such as Apple Terminal) on Mac OS X,
                however, I can't type the later one \uFF0C in Qt application.

                1 Reply Last reply
                0

                • Login

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