PySide Bugzilla Closed for New Bugs

PySide is now a Qt Add-on and uses the Qt Project's JIRA Bug Tracker instead of this Bugzilla instance. This Bugzilla is left for reference purposes.

Bug 1036 - Qt.KeyboardModifiers always evaluates to zero
: Qt.KeyboardModifiers always evaluates to zero
Status: CLOSED FIXED
Product: PySide
Classification: Unclassified
Component: QtCore
: 1.0.8
: PC Mac OS
: P1 major
Assigned To: Hugo Parente Lima
:
:
:
  Show dependency treegraph
 
Reported: 2011-10-27 19:24 EEST by Paul Bonser
Modified: 2011-11-29 21:28 EET (History)
9 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Paul Bonser 2011-10-27 19:24:10 EEST
As of 1.0.8, KeyboardModifiers always seems to evaluate to zero, regardless of
what was passed into it.

This:
    Qt.KeyboardModifiers(Qt.ControlModifier) == Qt.ControlModifier

evaluates to False in 1.0.8, whereas in 1.0.7 it evaluated to True.

More specifically, int(Qt.KeyboardModifiers(Qt.ControlModifier)) is 0, instead
of the expected value of 67108864.
Comment 1 Hugo Parente Lima 2011-10-27 20:08:43 EEST
Maybe a duplicate of bug 1033.
Comment 2 Paul Bonser 2011-10-27 20:47:26 EEST
Well, I wouldn't say it's a duplicate. In bug 1033, the enum items actually
have their appropriate values, but they hash to a different value. In this
case, Qt.KeyboardModifiers() always returns an instance with a value of 0, no
matter what arguments it got.
Comment 3 Hugo Parente Lima 2011-10-31 16:23:19 EET
Fixed in commit:

pyside/07092b21a77c9536321bb8517a67aace756a24bb
Comment 4 Luciano Wolf 2011-11-29 21:28:38 EET
Released on PySide 1.0.9. Closing.