Sorry , I made mistake in start,

Previously I used

Wrong Code:

Qt Code:
  1. QProcess process = new QProcess(this)
  2. process->start("cmd.exe /C ant -buildfile fileName");
To copy to clipboard, switch view to plain text mode 

to start the cmd process.

This is wrong,


Now i am using

Correct Code:


Qt Code:
  1. QProcess process = new QProcess(this)
  2. process->start("cmd /C ant -buildfile fileName") ;
To copy to clipboard, switch view to plain text mode 

Now this is working.


Thank u for ur continuous help.