Hello,
I have a weird trouble. I have created a QProcess object and started an external program. But... when program finishes, object is not emitting finished signal. How is this possible? What can I do to workaround this?
My code example:
launcher
::launcher(QWidget *parent, Qt
::WFlags flags
){
Sleep(3000);
program.start("/path/to/my/program.exe");
connect(&program, SIGNAL(finished(int)), this, SLOT(OnExit()));
}
void launcher::OnExit()
{
}
launcher::launcher(QWidget *parent, Qt::WFlags flags)
: QDialog(parent, flags)
{
QProcess program;
Sleep(3000);
program.start("/path/to/my/program.exe");
connect(&program, SIGNAL(finished(int)), this, SLOT(OnExit()));
}
void launcher::OnExit()
{
QMessageBox::information(this,"","Izhod");
}
To copy to clipboard, switch view to plain text mode
Bookmarks