In that case connect to the readyRead signal of QProcess and read only when there is anything to be read.