[PyQt] core dumped when destructor is called

Louis Granboulan louis.granboulan.developer at gmail.com
Fri Sep 14 14:54:52 BST 2012


I stumbled upon the following bug, which is probably a pyqt bug that
did not exist in the previous version.
You should be able to reproduce it on an up-to-date ubuntu with
python-qt4 4.9.1-2ubuntu1
The following code generates a SEGV, because the destructor for app is called

import sys
from PyQt4 import QtGui
app = QtGui.QApplication(sys.argv)
view = QtGui.QFrame(None)
view.graphicsView = QtGui.QGraphicsView()
view.graphicsView.setScene(QtGui.QGraphicsScene())


More information about the PyQt mailing list