[Development] No Finished signal from QProcess!
lata07agrawal at gmail.com
Mon Feb 27 10:09:12 CET 2012
I am running console application C1 in QProcess. I am starting this console
application C1 from another console application C2. Problem is:
I am only getting finished signal from C1 when I use waitforfinshed() else
I am not getting finished signal from C1. Here is the code:
strProgram = <Path to C1>;
Download is over, indicate through bool variable that next
downlaod can be started
qDebug("Update process finished!\n");
qDebug("Update process not yet finished!\n");
void FloDownloadManager::procStarted(int retVal ,QProcess::ExitStatus
qDebug("Update process finished automatically!\n");
if(currentExecutingPriority == AdsUpdate)
blnStartNextUpdate = true;
*If I comment the waitforfinished() code, I don't get the finished signal.
But if I include the waitforfinished() signal, I don't get the finished
signal*. Code for C1 is as follows:
int main(int argc, char *argv)
QCoreApplication a(argc, argv);
QTimer::singleShot(5000, &a, SLOT(quit()));
qDebug("returning from Updater process!@@@@@@@@\n");
I fail to understand what is going on wrong here. Someone please help.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Development