on-internet
← Community

Killing a QProcess in Qt

Stack Overflow ·

I would like to know how to kill a QProcess in Qt, Linux. I start an external application say like an app that displays image (full screen), with no title bar, so no close button. Now I need to close this application say after 5 secs. How do I do that in Qt? void MainWindow::Dialog() { ...... ...... connect(pbLaunchImage,SIGNAL(released()),this, SLOT(launchImage())); //I am guessing a connect here to kill the started process } void MainWindow::launchImage() { qWarning("Launching Image..."); p->execute("/usr/bin/fancyImage"); } EDIT: I still haven't figured it out but I found a workaround since

Comments

Sign in or sign up to comment and upvote.

No comments yet.