[PyKDE] PyQt4 and user-definied classes in signals

Phil Thompson phil at riverbankcomputing.co.uk
Wed Feb 1 08:46:20 GMT 2006


On Tuesday 31 January 2006 11:54 pm, Andreas Pakulat wrote:
> Hi,
>
> is or will it be possible to use user-defined classes when emitting
> signals? For example I'd like to pass an instance of my data class
> around with the signal, however I get an error with
>
> self.emit(QtCore.SIGNAL("dataChanged(Data)"), self.data)
>
> telling me that the argument 0 of the signal has the wrong type.

This is the same issue that Detlev raised a couple of days ago.

Phil




More information about the PyQt mailing list