[PyKDE] Using SIP to create python versions of C++ QWidget subclasses

Phil Thompson phil at riverbankcomputing.co.uk
Sun Jan 11 12:08:01 GMT 2004

On Sunday 11 January 2004 10:50 am, Jahn Otto Næsgaard Andersen wrote:
> Hi,
> I have a widget written in C++ deriving from QWidget. I'd like to make
> this widget available in a python program using SIP, but I am completely
> lost on how to do it.
> I tried to compile the example at
> http://pegasus.rutgers.edu/~elflord/unix/siptute/, but it doesn't work
> (I get a linker error when I try to import the library). I suppose that
> SIP has changed too much since version 3.2.x used in the example.
> Can anyone point me to a location that describes how to do it? I will be
> very thankful! :-)

Until I finish the documentation for SIP v4 your best bet is to pick a PyQt 
class that is similar to your new one and see how that does it. Then ask 
specific questions on this mailing list.


More information about the PyQt mailing list