There is an application written from scratch in c ++ and Qt 5. We need to add Python scripting in the style of 3ds max, that is, like this:
- We type the script in the editor built into the application.
- Save it.
- Press the Evaluate button and execute the script.
Perform in such a way as to have access from one script to the entire object model of the application. I found the lessons, but the situation is deplorable: extension is required - so that the application was originally written in Python. Otherwise, the advice is one: the method on c ++ is taken and the same method on Python is called with the required number of arguments, and I have nothing in Python except the arguments. How to get access to the entire application object model from embedded Python?
pybind11. Any way that CPython extensions allows you to write, for example, Cython , cffi (the latter only C calls) will do . - jfs