QProcess::ExitStatus QProcess::error ()
При нормальном завершени устанавливается в QProcess::UnknownError!
Получается что определить, что процесс нормально завершился невозможно?
enum QProcess::ProcessError
This enum describes the different types of errors that are reported by QProcess.
Constant Value Description
QProcess::FailedToStart 0 The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.
QProcess::Crashed 1 The process crashed some time after starting successfully.
QProcess::Timedout 2 The last waitFor...() function timed out. The state of QProcess is unchanged, and you can try calling waitFor...() again.
QProcess::WriteError 4 An error occurred when attempting to write to the process. For example, the process may not be running, or it may have closed its input channel.
QProcess::ReadError 3 An error occurred when attempting to read from the process. For example, the process may not be running.
QProcess::UnknownError 5 An unknown error occurred. This is the default return value of error().