[PyQt] GraphicsItem, QObject Inheritance problem
Brian Kelley
kelley at eyesopen.com
Thu Oct 1 13:16:52 BST 2009
What you can do, however, is to make a QObject delegate like:
class WrappedAffineItem(AffineItem):
def __init__(self ...):
self.qobject = QObject(self)
AffineItem.__init__(self, ..., parent)
self.qobject.connect(self.qobject,
SIGNAL("mysignal(int)",
SLOT(self.dosomething))
def connect(self, *a, *kw):
self.qobject.connect(*a,**kw)
def soSomething(self, *a):
pass
Brian Kelley
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20091001/c15e0d13/attachment.html
More information about the PyQt
mailing list