[PyKDE] PyQt + multiple Interpreters
Jim Bublitz
jbublitz at nwinternet.com
Fri Sep 17 19:48:06 BST 2004
On Friday 17 September 2004 10:49, Phil Thompson wrote:
> On Friday 17 September 2004 10:17 am, Christoph Wiedemann wrote:
> > Hi Phil,
> >
> > > SIP v3.x is deprecated. Try v4 see what happens.
> >
> > i've tried (sip 4.0.1) - and there are several issues arising from the
> > fact that i use embedded python interpreters.
> >
> > 1. i've used to link my application against libqtcmodule.so, which has
> > disappeared (renamed to qt.so). I do this in order to use
> > sipForceConvertTo_QWidget in my embedding application.
> >
> > What is the recommended way to get a QWidget pointer from a PyObject * in
> > an embedding application with sip 4.x ?
>
> Call sipForceConvertTo_QWidget(). It's covered in the documentation. You
> don't need to link against anything.
On the Python side you can use wrapinstance/unwrapinstance from the sip module
to convert between C++ pointers and Python instances, meaning Python can take
or return a C++ pointer.
Jim
More information about the PyQt
mailing list