[PyQt] Crasher in QShortcut contructor

Baz Walter bazwal at ftml.net
Tue Apr 9 02:10:14 BST 2013


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

-- 
Regards
Baz Walter


More information about the PyQt mailing list