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

Jahn Otto Næsgaard Andersen jotto at jotto.no
Sun Jan 11 12:32:01 GMT 2004

Thank you for your quick reply! Will the SIP v4 documentation be more
complete than the existing documentation? Do you have any idea when it
will be ready?

Jahn Otto

-----Original Message-----
From: Phil Thompson [mailto:phil at riverbankcomputing.co.uk] 
Sent: 11. januar 2004 12:07
To: Jahn Otto Næsgaard Andersen; pykde at mats.imk.fraunhofer.de
Subject: Re: [PyKDE] Using SIP to create python versions of C++ QWidget

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
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