int QProcess::execute ( const QString & program ) [static]
Starts the program program with the arguments arguments in a new process, waits for it to finish, and then returns the exit code of the process.
bool QProcess::startDetached ( const QString & program ) [static]
Starts the program program with the arguments arguments in a new process, and detaches from it. Returns true on success; otherwise returns false. If the calling process exits, the detached process will continue to live.
函数说明说得很清楚。