On Wed, 08 Apr 2009 07:45:35 -0400, Matt Smith <[email protected]> wrote: > Thats not quite what I'm getting at. That will emit the signal, which > is the 'old style' but the new style is a bit different, and after you > set it up you emit the signal by using: > > mysignal.emit(args) > > My question is that the only way I know how to make a 'new style' signal > emittable is via creating a class attribute, ie: > > class MyScene(QtGui.QGraphicsScene): > mysignal = QtCore.pyqtSignal(QtGui.QGraphicsSceneMouseEvent) > def __init__(self,parent): > #normal init stuff
You can only define new signals (that Qt knows about) in a sub-class. That goes for both old-style and new-style. Phil _______________________________________________ PyQt mailing list [email protected] http://www.riverbankcomputing.com/mailman/listinfo/pyqt
