On Sun Aug 24 15:05:32 BST 2008, Baz Walter wrote: > 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.
I doubt that they are supposed to be iterated over. :-) I get slightly different results with Qt 4.3.2, SIP 4.7.0 and PyQt 4.3.0: >>> for i in k: ... print hex(i) ... 0x4000048 0x8000056 0x8000039 0xa000052 ASSERT failure in QKeySequence::operator[]: "index out of range", file kernel/qkeysequence.cpp, line 1167 Aborted (core dumped) Note that the values it returns for me are all valid, though you might see junk if it iterates past the end of the internal list of keys. David _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
