Thank you very much for the nice tutorial about running external program in Qt.
I would like to ask a question about QProcess.
If the external program is in different folder of the Qt code,
how should one call an external program in its own directory?
Suppose external program is in ‘C:/program_folder/test.exe’ (with its own input files in that directory.)
and the Qt code is in ‘C:/qt_source/test.py’
p = QProcess() p.setWorkingDirectory('C:/program_folder/') p.start('test.exe')
But, it did not work. Could you help me for this problem?