Tomasz
29th July 2010, 18:29
Hello!
I want my application to execute the other application, so I wrote code like this:
void MainWindow::runApp()
{
QProcess *proc;
proc = new QProcess( this );
proc->start("/app", QStringList() << "-qws");
}
It's slot triggered by button. Application runs, but when I close It parent application is closing too with:
QProcess: Destroyed while process is still running
What I'm doing wrong?
thanks in advance
best regards
Tomasz
I want my application to execute the other application, so I wrote code like this:
void MainWindow::runApp()
{
QProcess *proc;
proc = new QProcess( this );
proc->start("/app", QStringList() << "-qws");
}
It's slot triggered by button. Application runs, but when I close It parent application is closing too with:
QProcess: Destroyed while process is still running
What I'm doing wrong?
thanks in advance
best regards
Tomasz