Hello!

I want my application to execute the other application, so I wrote code like this:

Qt Code:
  1. void MainWindow::runApp()
  2. {
  3. QProcess *proc;
  4. proc = new QProcess( this );
  5. proc->start("/app", QStringList() << "-qws");
  6. }
To copy to clipboard, switch view to plain text mode 

It's slot triggered by button. Application runs, but when I close It parent application is closing too with:

Qt Code:
  1. QProcess: Destroyed while process is still running
To copy to clipboard, switch view to plain text mode 

What I'm doing wrong?

thanks in advance
best regards
Tomasz