On Windows, I need to use in Python a few custom Qt5 widgets written in C++, and I have to use pyside2
because of its license.
I have been able to compile the pyside2
library from source (together with the shiboken2
examples), but I am not able to find a simple example of how to wrap a custom Qt5 widget.
I am aware that pyside2
is still not officially released, but it seems to be already used (e.g., in Maya): In a PySide2 app, how can I get the ID for a QWindow?
Can anybody give hints or directions? A minimal example would be even better.
Edits
Based on @placinta comments, I have created a repo with a minimal example that attempts to wrap a custom QMainWindow
.
In my tests, I have used the pyside2
Conda package that wraps Qt
5.6.
When I execute the shiboken2
executable, I am getting tons of warnings.
I assume that these warnings are triggering a compilation error with the shiboken2
generated code.