Solved How to cast c++ quintptr to QWidget in PySide2?
-
Hey
I have a c++ dll that creates a widget and returns quintptr. Or anything that I want to tbh...
How can I cast it to QWidget in my python part of the application?Regards
Dariusz -
Meh forgot about shiboken2 sigh
shiboken2.wrapInstance(widget_pointer, QWidget)
To the rescue! -
Meh forgot about shiboken2 sigh
shiboken2.wrapInstance(widget_pointer, QWidget)
To the rescue!