查询进程状态:
QProcess::ProcessState QProcess::state () const
Returns the current state of the process
关闭进程:
void QProcess::close () [virtual]
Reimplemented from QIODevice::close().
Closes all communication with the process and kills it. After calling this function, QProcess will no longer emit readyRead(), and data can no longer be read or written.