0
我在QT中编写桌面应用程序。 在我的申请,我由类openening另一个应用程序过程关闭时显示 - QT
QProcess *myProcess;
myProcess->start(path + argStr);
我想获得指示过程是否关闭(也许有人manullay) ,所以我开始一个新的线程
void processExitDetector::run()
{
connect(myProcess,SIGNAL(finished(int)),this, SLOT (stop()));
}
void processExitDetector::stop()
{
}
但是如果在函数stop()中有断点。即使我停止了这个过程,我也永远不会停留在那里。 我在做什么worng?过程停止时获得指示的最佳方式是什么?
嗯。你刚刚更新了你的代码,并删除了'waitForFinished',它稍微改变了上下文。毕竟你没有这样做? – jdi 2012-07-15 05:58:33