[PyQt] Problem with QKeySequence
phil at riverbankcomputing.com
Sun Aug 24 18:22:42 BST 2008
On Sun, 24 Aug 2008 15:05:32 +0100, Baz Walter <bazwal at ftml.net> wrote:
> 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]
> >>> for i in k: print i
> [snip long list of garbage numbers]
> Traceback (most recent call last):
> File "<stdin>", line 1, in <module>
> But QKeySequences aren't meant to be iterable at all, right?
Why not? Both loops should behave in the same way.
> This is using qt 4.4.1, pyqt 4.4.3, sip 4.7.7.
It will be fixed in tonight's snapshot.
More information about the PyQt