QByteArray errorArray= mProcess->readAllStandardError();QTextStream ts(errorArray);while (!ts.atEnd()){ QString line = ts.readLine(); ...}