Details
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
For Gerrit Dashboard: PYSIDE-2021 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
424845,17 | PyEnum: Fix QKeySequence to stay correct when switching IntEnum to Enum | dev | pyside/pyside-setup | Status: MERGED | +2 | 0 |
425839,3 | PyEnum: Fix QKeySequence to stay correct when switching IntEnum to Enum | 6.3 | pyside/pyside-setup | Status: MERGED | +2 | 0 |