[PyKDE] Re: qt4 signals and slots

Dave Fancella dave at davefancella.com
Fri Feb 16 09:16:38 GMT 2007


> QtCore.QObject.connect( QtCore.SIGNAL("whateveritscalled()"),
> self.yourSlot)

Er, I get a lot of stacktraces over that line because I always forget the 
first argument to SIGNAL:

QtCore.QObject.connect( theobjectemittingthesignal, 
QtCore.SIGNAL("whateveritscalled()"), self.yourSlot)

So it's:  (The emitter, the signal, the slot).

Sorry.

Dave




More information about the PyQt mailing list