Closed gaosh97 closed 6 months ago
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.
Can I run python file in c++ function with PythonQt, my python file like this test.txt