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
_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to