Making an app launch an app
I was wondering if there is a way to launch an application from another application. I have made 2 applications (app A and app B for our purposes). Is there a way that I could create a button in App A that when clicked would launch App B? The answer is probably obvious, but any help would be greatly appreciated.
Does QProcess do what you need?
Yes, it looks like it should. How would I go about using it though?
Something like this I guess...
Have ou read over the doco?
@QString fileName = QFileDialog::getOpenFileName(this, tr("Open File"), "", tr("Files (.)"));
QProcess *Process = new QProcess (this);
Process ->waitForFinished ();@
Or if you want to have the first app to fire and forget you can use QProcess::startDetached().
But then you lose the control of the new app.
thats a neat trick. Thanks!