Hello
If I try to reimplement the method drawItems in a QGraphicsScene subclass,
the program segfaults. Is this a bug in PyQt? I am by the way using PyQt
4.1.1 (self-compiled) and Qt 4.2.0 (Ubuntu). I've included a sample program
which exhibits the behaviour.
Arve
from PyQt4.QtGui import *
class _GraphicsScene(QGraphicsScene):
def __init__(self, parent):
QGraphicsScene.__init__(self, parent
def drawItems(self, *args):
""" Reimplement in order to notify observers of draw event. """
QGraphicsScene.drawItems(self, *args)
import sys, os.path
app = QApplication([])
w = QGraphicsView()
scene = _GraphicsScene(w)
w.setScene(scene)
w.show()
app.exec_()
_______________________________________________
PyKDE mailing list [email protected]
http://mats.imk.fraunhofer.de/mailman/listinfo/pykde