I have a QT 4.6 application (C++ language) and i need to add python scripting to it on windows platform. Unfortunately, i never embed python before, and it seems to be a lot of different ways to do so. Can anyone share his wisdom and point me into some articles/documentation i can read to perform a specified task in less painful way?
You should take a look at PythonQt. From the homepage:
PythonQt is a dynamic Pythonbinding for Qt. It offersan easy way to embed the Pythonscripting language into your Qtapplications. It makes heavy use ofthe QMetaObject system and thusrequires Qt4.x. In contrast to PyQt ,PythonQt is not a complete Pythonwrapper around the complete Qtfunctionality. So if you are lookingfor a way to write completeapplications in Python using the QtGUI, you should use PyQt.
If you are looking for a simple way toembed Python objects into your C++/QtApplication and to script parts ofyour application via Python, PythonQtis the way to go!
Build/installation instructions for Windows is near the bottom of the page.