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

QTest::keyPress doesn't work with non-Latin letters

    XMLWordPrintable

Details

    Description

      QTest asserts with non latin characters (it checks the
      range belonging to QT::Key_<some1> to QT::Key_<some2>. And non-Latin
      letters are outside this range.

      class Tester : public QObject
      {
      Q_OBJECT
      private slots:
      void prkey();
      };
      void Tester::prkey()
      {
      mEdit *lineEdit = new mEdit;
      QTest::keyPress(lineEdit, 'a');
      QTest::keyPress(lineEdit, 'ф'); //Russian letter located on key with En_A.
      }

      If non latin characters are not supported in the test suite, this behavior should be clearly documented.

      Attachments

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

        Activity

          People

            daviclar David Clark (closed Nokia identity) (Inactive)
            dettman Dean Dettman (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes