Are you looking for something like this?
void QProcess::setStandardOutputFile ( const
QString & fileName,
OpenModemode = Truncate )
and note that if you don't handle the output in any way, it's gonna go to memory, unless you specify that you don't want that
This, if not noted, may result in behaviour seeming like a memory leak, the size of which depends on the amount of output the executed program produces.