My goal is to achieve the following use case and I believe i missunderstood the usage of QProcess?

My QT program is starting another program with a given filename, example: word.exe and file.doc or the one mentioned in the code. My Qtprogram shouldnt freeze while the other program is activ. Then I want to know, if the user has exited the other program so i can take care of the newly edited doc file...

Qt Code:
  1. QProcess* app = new QProcess();
  2. // app params
  3. args.push_back(Filename().c_str()); // Filename coming from somewhere else looking like this "C:\someplace\file.mm"
  4. app->start("c:\\Programme\\Freemind\\Freemind.exe",args);
  5.  
  6. // slot connect
  7. connect(app,SIGNAL(finished(int,QProcess::ExitStatus)),this,SLOT(AppFinished()));
To copy to clipboard, switch view to plain text mode