PDA

View Full Version : Python Script in Qt C++



HanyM.Magdy
5th August 2010, 08:50
Hi

i need to embed Python Script in the Qt C++, i add the PythonQt classes to the project.

all i need is to create an application for get python script and run it.

Thanx

Ginsengelf
6th August 2010, 07:40
Hi, I don't know if embedding python is possible. If not, you can use QProcess to call the python interpreter with your python file.

Ginsengelf

sirius
6th August 2010, 16:47
To try Google first wouldn't hurt... Anyway - you're looking for this: PythonQt (http://pythonqt.sourceforge.net/).

Other interesting hits on Google was: Embedding Python in Another Application (http://docs.python.org/extending/embedding.html), and QQ23 (http://doc.trolltech.com/qq/qq23-pythonqt.html).