Uploaded image for project: 'Qt for Python'
  1. Qt for Python
  2. PYSIDE-2021

QKeySequence implementation is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 6.3, 6.4
    • 6.3, 6.4
    • PySide
    • None
    • 06bc40580c (pyside/pyside-setup/dev) 06bc40580c (pyside/tqtc-pyside-setup/dev) 0c68fb19e4 (pyside/pyside-setup/6.3) 0c68fb19e4 (pyside/tqtc-pyside-setup/6.3) 0c68fb19e4 (pyside/pyside-setup/wip/6.3_pypy)

    Description

      QKeySequence returns its values as int. This is not correct, it should return QKeyCombination instances.

      Observed when turning most IntEnum into Enum.

      When inserting QKeyCombination instances instead of coercing them immediately
      to int, before the QKeySequence is created, then an unexpected effect happens:

      The default for keys is Qt::Key_unknown which is not 0. When encoding a single
      Qt::KeyboardModifiers instance without a character, this default is added.
      With an integer result shown as unicode, this creates weird nonsense.

      Attachments

        Activity

          People

            ctismer Christian Tismer
            ctismer Christian Tismer
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: