QProcess::waitForFinished should return false when the QProcess ends with an error *or* the number of milliseconds is reached. It should return true only when the process is finished before the number of milliseconds are reached *and* the QProcess ended normal (return code 0).
What is the return value from QProcess::waitForFinished and what is the QProcess::exitCode and QProcess::exitStatus? I don't believe you can do what you want by inspecting only the return value from QProcess::waitForFinished.
IMHO, if you're going to use the QProcess::waitForFinished method, you should probably make sure your process has started by using QProcess::waitForStarted as well.
Bookmarks