[PyKDE] Dropping SIGNAL() and SLOT() in PyQt4?

Phil Thompson phil at riverbankcomputing.co.uk
Sun Feb 19 12:23:00 GMT 2006


PYSIGNAL() has already been dropped in PyQt4. This was possible because Qt4 
makes it easier to look up whether a particular string is a Qt signal 
signature or not. There is no reason why this approach cannot be extended to 
distinguishing between signals and slots, ie. rely on a slightly slower 
dynamic lookup rather that the type information SIGNAL() and SLOT() provide.

(In fact I don't see why Qt still needs SIGNAL() and SLOT() - maybe the speed 
penalty of the alternative is more an issue at the C++ level.)

So, what so you think? Is dropping them to much of a cultural change? (Of 
course they could also be made optional.)

Phil




More information about the PyQt mailing list