[PyQt] embedding pyqt into a CPP app
Phil Thompson
phil at riverbankcomputing.com
Thu Jan 19 09:19:52 GMT 2012
On Wed, 18 Jan 2012 21:04:35 -0800, Josh Stratton
<strattonbrazil at gmail.com> wrote:
> I've seen a couple examples for compiling a CPP app into a
> pyqt-loadable module such as
> http://lynxline.com/qt-python-superhybrids/, but that still requires
> compiling an existing application down to a C++ module. Is it
> possible to use pyqt inside an existing CPP application to run python
> code similar to pythonqt?
>
> For example...
>
> int x = 5;
> pyObject = pyqtContext.eval(x);
> etc.
Yes. You need to read...
http://www.riverbankcomputing.com/static/Docs/sip4/embedding.html
...to get access to the APIs.
Phil
More information about the PyQt
mailing list