How to call a Python script in a C ++ code in Qt creator?

3

How do I call a Python script in a C ++ code in Qt creator?

    
asked by anonymous 11.02.2015 / 18:18

1 answer

2

Based on in this answer , the way to call any python script by Qt is:

QProcess p;
p.start("python", "script.py");

Remember that it is necessary to have python in the Path of the machine.

    
11.02.2015 / 19:14