3

I am using QProcess to run other programs. But when I exit my app after calling QProcess.start() it says in debug console:

QProcess: Destroyed while process is still running.

and the process closes.

But I want to keep this process running after closing my app. How I start new process:

QProcess p;
p.start("ssu.exe", QStringList() << "-instantinstall");

How do I do that?

László Papp
  • 51,870
  • 39
  • 111
  • 135
iamnp
  • 510
  • 8
  • 23

1 Answers1

4

You need to use QProcess::startDetached. See the docs:

If the calling process exits, the detached process will continue to live.

Pavel Strakhov
  • 39,123
  • 5
  • 88
  • 127