I don't think QT provides a method to run an external command. But that's OK because QT uses C++, so you can just use the system() function. See
You will need to include the stdlib.h header in the file you want to call system() from.
Then just do:
Code:
int rtn = system(command)
where
command is a regular string (i.e. double-quoted or NULL-terminated; you can also use a QString here by passing the return value of its latin1() method). The string should contain the command to run, exactly as you would type it in at your shell's command line. See
for details on how to cope with command-line arguments and unusual characters.
After running this, the value of rtn will hold the return value of the command, assuming the command ran successfully.