[PyQt] Problem with QKeySequence
Baz Walter
bazwal at ftml.net
Sun Aug 24 15:05:32 BST 2008
Hi Phil
Just found this little bug...
>>> from PyQt4.QtGui import QKeySequence
>>> k = QKeySequence('Ctrl+H, Alt+V, Alt+9, Alt+Shift+R')
>>> for i in range(k.count()): print k[i]
...
67108936
134217814
134217785
167772242
>>> for i in k: print i
...
[snip long list of garbage numbers]
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyboardInterrupt
>>>
But QKeySequences aren't meant to be iterable at all, right?
This is using qt 4.4.1, pyqt 4.4.3, sip 4.7.7.
Regards
Baz Walter
More information about the PyQt
mailing list