How to integrate python with qt c++?
Unsolved
General and Desktop
-
wrote on 27 Jul 2022, 06:05 last edited byThis post is deleted!
-
This post is deleted!
@Ramkumar-Mohan Please explain better what exactly you want to do:
- Execute Python script from a C++ applications? --> https://docs.python.org/3/extending/embedding.html
- Call some C++ libs from Python? --> https://docs.python.org/3/extending/extending.html
To use Qt in Python: https://www.qt.io/qt-for-python
-
wrote on 29 Jul 2022, 10:30 last edited byThis post is deleted!
-
This post is deleted!
wrote on 29 Jul 2022, 10:46 last edited by JonB@Ramkumar-Mohan
You can't. Creator is a design-time tool, you can't have it executing some scripts. Not to mention, why would you want a Python script executed at design-time?@jsulm's references show how you can cross between Python & C++ in your code at runtime.
-
This post is deleted!
@Ramkumar-Mohan I already gave you a link explaining how to call Python scripts from C++ (there is no such thing as "QtCreator C++") - did you take time to read it?
1/5