read the output from qprocess instance