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

No way to enter Unicode characters > 0xff with QTest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 5.11.2
    • Fix Version/s: None
    • Component/s: Testing: qtestlib
    • Labels:
      None

      Description

      Basically, QTest allows you to input QKeys or chars. I guess it might be possible to take one of the fancier QKeys to input some unicode character, but you're out of luck if you want to input one that does not have a QKey.

      There is the keyClicks method which takes a QString, but then calls toLatin1() on every char.

      Internally, all these functions create a QKeyEvent in the end, which is perfectly capable of handling unicode characters, so as far as I can see this is "just" not exposed in the QTest interface.

        Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

            Assignee:
            liaqi Liang Qi
            Reporter:
            karyon karyon
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes