hi,

im using qt3 ryt now, im trying to call an executable file using qprocess

the executable is a movie player but the movie is on the other computers database so it uses socket..

Qt Code:
  1. QProcess *proc= new QProcess(executablepath);
  2. proc->addargument("-i");
  3. ..//and many more addarguments cause it is required by the executable
  4. proc->start();
To copy to clipboard, switch view to plain text mode 
the executable shows but closes immediately after starting..
if i run the application with the arguments manually, it shows and does not close immediately..

Now what could be the problem?

the executable?

the arguments? cause some of the arguments are path like bin/directory/ i did not change the / to // or to \

my code?
if i run the executable manually it goes like this:

./myplayer -i 100.000.0.1 -p 4000 -k ./bin/directory/ -t 5

in my codes it goes like this:
Qt Code:
  1. QProcess *proc = new QProcess("./myplayer"); //i just put the ./myplayer to fast understanding
  2. proc->addargument("-i");//ip
  3. proc->addargument("100.000.0.1");
  4. proc->addargument("-p");//port
  5. proc->addargument("4000");
  6. proc->addargument("-k");//directory
  7. proc->addargument("./bin/directory/");
  8. proc->addargument("-t");//socket timeout
  9. proc->addargument("5");
  10. proc->start();
To copy to clipboard, switch view to plain text mode 
how to solve this?