<HTML>
<HEAD>
<TITLE>Re: [PyQt] GraphicsItem, QObject Inheritance problem</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>What you can do, however, is to make a QObject delegate like:<BR>
<BR>
class WrappedAffineItem(AffineItem):<BR>
def __init__(self ...):<BR>
self.qobject = QObject(self)<BR>
AffineItem.__init__(self, ..., parent)<BR>
self.qobject.connect(self.qobject, <BR>
SIGNAL("mysignal(int)",<BR>
SLOT(self.dosomething))<BR>
<BR>
def connect(self, *a, *kw):<BR>
self.qobject.connect(*a,**kw)<BR>
<BR>
def soSomething(self, *a):<BR>
pass<BR>
<BR>
Brian Kelley</SPAN></FONT>
</BODY>
</HTML>