[Development] Qt5.15 deprecating & Qt6 removing QProcess::setupChildProcess

Joerg Bornemann Joerg.Bornemann at qt.io
Tue Feb 18 12:50:21 CET 2020


On 2/18/20 12:17 PM, Edward Welbourne wrote:

> We would presumably want to subsequently rationalise the MS and Unix
> APIs to have a common form, instead of having naked MS types in the API
> for one and something else for the other.  That would mean deprecating
> the existing MS-specific API in favour of a cross-platform API at some
> point. 

The API in question is to give the user the possibility to tweak the 
native API call. I don't see how this can be ever "crossplatformified" 
unless you mean passing void*.

>> Alternative: add the API to Qt 6 and deprecate setupChildProcess(),
>> but remove it only in Qt 7. This means we get the benefit of cleaner
>> API over time, without the feature freeze exception and potential
>> standard library compatibility issue, but makes us keep using
>> FORKFD_USE_FORK for other derivation reasons.

IMHO that's the safer route.


BR,

Joerg


More information about the Development mailing list