How to develop python qwidget for c++ QMainWindow?
Unsolved
Qt for Python
-
Want to code some python qwidget for my c++ MainWindow design. How to do so?
-
@MonkeyBusiness said in How to develop python qwidget for c++ QMainWindow?:
Want to code some python qwidget for my c++ MainWindow design
Why? What is actually your use case?
You can execute Python code from C++ like explained here: https://docs.python.org/3/extending/embedding.html
But this will not work with Python and QWidgets because to execute Python code in a C++ application Python interpreter is called. -
@MonkeyBusiness said in How to develop python qwidget for c++ QMainWindow?:
I would like a c++ pointer to the created python QWidget
But why?
Either write the rest of the GUI also in Python or rewrite the widget in C++.