So, I've got something like this:
void MainWindow
::runMyApp(QString parameter
) {
connect(proc, SIGNAL(finished()), this, SLOT(appIsLoaded()));
connect(proc, SIGNAL(finished(int)),this, SLOT(deleteLater()));
}
void MainWindow::runMyApp(QString parameter)
{
QProcess *proc;
proc = new QProcess( this );
QApplication::setOverrideCursor(QCursor(Qt::WaitCursor));
connect(proc, SIGNAL(finished()), this, SLOT(appIsLoaded()));
connect(proc, SIGNAL(finished(int)),this, SLOT(deleteLater()));
proc->start("/myapp", QStringList() << parameter);
}
To copy to clipboard, switch view to plain text mode
And console gives:
Object
::connect: No such
signal QProcess::finished()Object::connect: (receiver name: 'MainWindow')
*** glibc detected *** /qt/test: free(): invalid pointer: 0xbef3db44 ***
Object::connect: No such signal QProcess::finished()
Object::connect: (receiver name: 'MainWindow')
*** glibc detected *** /qt/test: free(): invalid pointer: 0xbef3db44 ***
To copy to clipboard, switch view to plain text mode
Parent application (test) is closing when I'm closing child application. But 'ps' command says that 'test' is still working... I've tried to run 'clean' application that is doing nothing to be sure everything is OK with child application, and same thing happens.
Any ideas?
thanks in advance
best regards
Tomasz
-------------------------------------------
Edit:
Of course in first connect should be finished(int) then console gives only:
*** glibc detected *** /qt/test: free(): invalid pointer: 0xbee37b44 ***
*** glibc detected *** /qt/test: free(): invalid pointer: 0xbee37b44 ***
To copy to clipboard, switch view to plain text mode
Bookmarks