Qt 5 & Python integration
-
Hello,
I have a general question.
I have a couple of Python scripts (use python 2.6) based on Numpy, Scipy, PyLab, PyUsb, PySide, ...
The goal is to integrated the python into Qt 5.0, build a nice GUI, write some extra C++ around it, compile to an exe so it can run as a stand-alone program for windows 7.
Finally, the user may not get access to the python code or any other code written in Qt or C++.
My question is this possible.
If yes, can you give nice starting points, examples, that explains how I can start and to do this integration.Regards,
JrV -
Hi and welcome to DevNet,
You can search for "PyQt":http://www.riverbankcomputing.com/software/pyqt/intro & "PySide":http://qt-project.org/wiki/PySide. Those are bindings for Qt in python.
Hope it helps
-
So, you want to embed a python interpreter in a Qt application ?
-
If it's only a matter of making a standalone application, it can also be done for python application using i.e "PyInstaller":http://www.pyinstaller.org/
If you already have a complete application in python, no need to rewrite it in C++.
Otherwise look for something like PythonQt, but IIRC it currently supports only Qt 4.
-
Maybe "this":http://stackoverflow.com/questions/261638/how-do-i-protect-python-code will help you