PyQt widget in Qt-C++ application

311 Views Asked by At

I am trying to understand if it is possible to include a PyQt5 widget inside my Qt-C++ application.

There is a lot of information about wrapping C++ class into python and using it from the python side, however, my question is the opposite.

I tried boost-python, pythonqt, and some other resources, but none of them give a clear answer whether it is possible or not. Mostly they allow to call python scripts and, in case of pythonqt, as I could understand, connect signals and slots, but not to attach one object to another.

Explanation: I have a widget in PyQt5 inherited from QWidget and I need to use it in my QMainWindow in C++.

Is it possible to achieve this? And if so, how can I do it?

0

There are 0 best solutions below