I didn't know about QProcess.
Thanks,I am able to implement it successfully