Qt 5 & Python integration
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.
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
I understand that PyQt and PySide is to use Qt in Python. Correct?
This is what the scripts are doing at the moment.
The goal is to use Python in Qt5.
So, you want to embed a python interpreter in a Qt application ?
I like to embed the Python code into a Qt application written in Qt5.0.1.
So I can compile it to a stand alone application for windows 7
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.
Ok. So using PyInstaller I can make a exe file.
Question. What about reverse engineering.
Can somebody for example recover the Python code.
Maybe "this":http://stackoverflow.com/questions/261638/how-do-i-protect-python-code will help you