Форум вопросов и ответов

Форум вопросов и ответов (https://www.otvetnemail.ru/)
-   Новый архив 3 (https://www.otvetnemail.ru/novyj-arhiv-3-813/)
-   -   QProcess - как определить что завершился без ошибок? (https://www.otvetnemail.ru/novyj-arhiv-3-813/qprocess-kak-opredelit-chto-zavershilsya-bez-oshibok-261377/)

Guest 28.09.2011 20:23

QProcess - как определить что завершился без ошибок?
 
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().


Часовой пояс GMT, время: 08:07.


© www.otvetnemail.ru - Форум вопросов и ответов.