pybind11 / pyside2 / c++qt... oh dear
-
Hey
I don't even know how to wrap my head around it but maybe some1 can help.
I have a c++ app in Qt that has window/text editor, in that editor I'll put stuff like
from PySide2.QtWidgets import * app = QApplication([""]) w = QWidget() w.show() sys.exit(app.exec_())
And run that inside pybind11/python... now great it works 1st time. 2nd time it crashes, but we can skip it for now... what I wonder is... should I pass my C++ QApplication to pybind11-python somehow so my pyside2 reuses existing application - thus allowing for the widgets to interact with each other ?
If so, how ?
Regards
Dariusz -
Hi,
You should provide a minimal compilable example showing your issue.
There's an example of application making use of the two in this blog article.