[review] [PyKDE] Re: How to embed Python in C++

Jim Bublitz jbublitz at nwinternet.com
Wed Mar 22 15:24:38 GMT 2006

On Wednesday 22 March 2006 02:56, Eric Jardim wrote:
> 2006/3/21, Eric Jardim <ericjardim at gmail.com>:
> > How do I embed Python script in C++?
> C'mon folks...
> How do I convert a "PyObject*" to a "QWidget*" returned from a function
> like "PyRun_String()"?

Or you can use sip.wrapinstance and sip.unwrapinstance on the Python side (and 
pass/return the pointer from/to C++ as a long) - also in the sip docs.


More information about the PyQt mailing list