[PyKDE] None as emit argument

Phil Thompson phil at riverbankcomputing.co.uk
Sun Sep 28 11:44:01 BST 2003

On Sunday 28 September 2003 3:04 am, Derek Fountain wrote:
> I have this line of code:
> self.emit( PYSIGNAL("signalNewViewerImage"), (QPixmap(filename),) )
> It's possible for the filename, and hence the pixmap, to be None. The slot
> handles this eventuality. However, when I run the code under these
> circumstances, I get:

Why do you say "and hence the pixmap"? There is no QPixmap ctor that accepts a 
single NULL argument.


More information about the PyQt mailing list