QPyConsole
This simple project demonstrates the embedding of python interpreter into C++/QT application.
What's Next?
Using pybind11 or PythonQt to create Python bindings to existing C++ code.
Pre-Requisites / Versions used to build
- Qt 5.15.1 ( QTCore + QTWidgets)
- Python 3.8 + Dev and Libs ( need headers (.h) and libraries (.so/.a) )
Build
- Make sure Python is installed in your computer.
- Open "QPyConsole.pro" and make sure link to python folder and it's libraries are correct (i.e. modify "/Python/Python38-32/" and "libs -lpython38" )
- Open QtCreator then open "QPyConsole.pro" file and build the project.