[PyQt] Crasher in QShortcut contructor

Phil Thompson phil at riverbankcomputing.com
Tue Apr 9 13:20:15 BST 2013


On Tue, 09 Apr 2013 02:10:14 +0100, Baz Walter <bazwal at ftml.net> wrote:
> Using the "context" argument of the QShortcut constructor causes a 
> segfault, e.g:
> 
>      from PyQt4 import QtGui, QtCore
> 
>      app = QtGui.QApplication([])
>      widget = QtGui.QWidget()
> 
>      QtGui.QShortcut('Ctrl+F', widget, widget.show,
>                      None, QtCore.Qt.ApplicationShortcut)
> 
> This is with:
> 
>      python 2.7.3, qt 4.8.4, sip 4.14.6-snapshot-395bf9f00aa6, pyqt 
> snapshot-4.10.1-a8db83af435d

It's a SIP bug. Fixed in hg and tonight's snapshot.

Thanks,
Phil


More information about the PyQt mailing list