[PyKDE] QImageIO class

Phil Thompson phil at riverbankcomputing.co.uk
Mon Feb 23 01:08:00 GMT 2004


On Sunday 22 February 2004 20:53, michael ferraro wrote:
> hello phil
>
> I see that as of last Nov. 2003 it seems that adding a new QImageIO
> handler
> wasn't supported.  It appears the this is still the case with sip4.
> Can this
> be added.  I need to read/write targa and photoshop images in addition
> to the ones supported by TrollTech.

I don't think it's possible to implement this. The callback doesn't provide 
enough information to be able to work out which Python function to call.

A work around would be for you to implement a helper C++ class for each of the 
formats you need to handle and generate wrappers for those.

Phil




More information about the PyQt mailing list