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

QShortcut.setKey does not accept a lone Key

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Not Evaluated
    • None
    • 6.3.1
    • Documentation, PySide
    • None
    • Windows

    Description

      The Documentation for QShortcut.setKey states that you can put a singular Key type such as Qt.Key_Escape in however when you try to do so it throws an error saying that it only accepts PySide6.QtGui.QKeySequence, PySide6.QtCore.QKeyCombination, PySide6.QtGui.QKeySequence.StandardKey, str, or int

      Attachments

        1. pyside2112.py
          0.8 kB
          Friedemann Kleint

        Activity

          People

            kleint Friedemann Kleint
            mr_spagetty Eddie Wallace
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: