[PyQt] Problem with QKeySequence

Phil Thompson phil at riverbankcomputing.com
Sat Aug 30 16:16:24 BST 2008


On Tue, 26 Aug 2008 18:08:09 +0100, Baz Walter <bazwal at ftml.net> wrote:
> Phil Thompson wrote:
>> 
>> It will be fixed in tonight's snapshot.
> 
> Thanks!
> 
> However...
> 
>>>> from PyQt4.QtGui import QKeySequence, QApplication
>>>> app = QApplication([])
>>>> k = QKeySequence.StandardKey(3)
>>>> d = {k: 'Open'}
>>>> d[k]
> 'Open'
>>>> d = {QKeySequence.StandardKey(3): 'Open'}
>>>> d[k]
> Segmentation fault
> 
> (I also get a segfault if I try to create a QKeySequence from a
> StandardKey without first creating a QApplication)
> 
> This is using either qt 4.4.1, sip 4.7.7, pyqt 4.4.3
> or qt 4.4.1, sip 4.7.8-snapshot-20080817, pyqt 4.4.4-snapshot-20080824

Should be fixed by tonight's SIP snapshot.

Phil



More information about the PyQt mailing list