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

QKeyEvent: wrong key value with Qt::ShiftModifier

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Not Evaluated Not Evaluated
    • None
    • 5.1.0 , 5.1.1
    • None
    • Windows 7 64 Bit

      The value returned by QKeyEvent::key() for keys that need the shift key changed between Qt 5.0.2 and Qt 5.1.0.

      On german keyboard the double quote (") character needs the shift key (Shift+2).

      Qt 5.0.2
      QKeyEvent contained the values key = 34 (Qt::Key_QuoteDbl), modifiers = Qt::ShiftModifier and text = ".

      Qt 5.1.0
      QKeyEvent now contains the values key = 50 (Qt::Key_2), modifiers = Qt::ShiftModifier and text = ".

      Qt 5.1.1 (MinGW 4.8)
      QKeyEvent now contains the values key = 50 (Qt::Key_2), modifiers = Qt::ShiftModifier and text = ".

        1. testcase-33054.zip
          2 kB
          Christian Loose
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            owolff Oliver Wolff
            cloose Christian Loose
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes