QProcess::ExitStatus QProcess::error ()При нормальном завершени устанавливается в QProcess::UnknownError!Получается что определить, что процесс нормально завершился невозможно?Цитироватьenum QProcess::ProcessErrorThis enum describes the different types of errors that are reported by QProcess.ConstantValueDescriptionQProces s::FailedToStart0The process failed to start. Either the invoked program is missing, or you may have insufficient permissions to invoke the program.QProcess::Crashed1The process crashed some time after starting successfully.QProcess::Timedout2The last waitFor...() function timed out. The state of QProcess is unchanged, and you can try calling waitFor...() again.QProcess::WriteError4An 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::ReadError3An error occurred when attempting to read from the process. For example, the process may not be running.QProcess::UnknownError5An unknown error occurred. This is the default return value of error().
|