I solved my problem. Actually there was not a problem with Qprocess or exitStatus( ). exitStatus() can return any integer value. After checking the exitStatus of QProcess, I was not intializing the pointer to object properly.