Embed Python interpreter using PySide in a QWidget C++ application
I'm working on a C++ QWidgets applications where users can execute python/lua scripts. Now I'd like python modules to be able to
- add widgets at particular locations in the application windows
- create new windows
I'd like those windows / widgets to be the same than the ones the application uses (QWidgets with css).
Is it possible with PySide ? I couldn't find the solutions online.
Disclaimer: Not a python user.
But it seems possible with plain python so i guess pySide also would work.
(being a binding)
I dunno C++ well enough but this kind of stuff is surely possible. For instance Maya does it just the same way.
Or actually Cryengine Sandbox! 😃
Here is the code on github!