-
Can I run python file in c++ function with PythonQt, my python file like this |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Sorry I didn't answer earlier: You can run a Python file with PythonQt, but you don't need PythonQt for that. |
Beta Was this translation helpful? Give feedback.
Sorry I didn't answer earlier: You can run a Python file with PythonQt, but you don't need PythonQt for that.
You can initialize a normal Python interpreter in your code and tell it to compile and execute your code. PythonQt doesn't make it that much easier to do that. What PythonQt is good at is making your own C++ objects available in Python. What it is very good at is making QObjects (the standard interface object of the Qt framework) available in Python.