[Development] Deprecating the static QProcess::startDetached() overloads
Joerg Bornemann
Joerg.Bornemann at qt.io
Wed Feb 27 11:32:03 CET 2019
On 27/02/2019 07:59, J-P Nurmi wrote:
> Is it technically possible to start() and then detach()?
>
> QProcess process;
> process.setFoo(...);
> process.start(...);
> process.waitForBar();
> process.read(...);
> process.detach();
In principle, yes. But what happens when detaching a process that's
created with processChannelMode QProcess::SeparateChannels, which
happens to be th default? The channels are owned by the QProcess object
and will be destroyed while the child process is still running.
BR,
Joerg
More information about the Development
mailing list