Bug 438998

Summary: QProcess::startDetached gives qt6-deprecated-api-fixes warning
Product: [Developer tools] clazy Reporter: Jonas Kvinge <jonas>
Component: generalAssignee: Jörg Bornemann <joerg.bornemann>
Status: RESOLVED FIXED    
Severity: normal CC: smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: openSUSE   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Jonas Kvinge 2021-06-21 14:52:17 UTC
SUMMARY
There is no QProcess::startDetachedCommand() function in Qt 6 as of today, using the Qt 6 dev branch.

OBSERVED RESULT

jonas@jonas:~/Projects/strawberry/build> clazy-standalone -checks=qt6-deprecated-api-fixes -p compile_commands.json ../strawberry/src/core/utilities.cpp 
/home/jonas/Projects/strawberry/strawberry/src/core/utilities.cpp:393:10: warning: call function QProcess::startDetached(). Use function QProcess::startDetachedCommand() instead [-Wclazy-qt6-deprecated-api-fixes]
    proc.startDetached(command, QStringList() << command_params << "--select" << url.toLocalFile());
         ^~~~~~~~~~~~~
         startDetachedCommand
1 warning generated.


EXPECTED RESULT

No warning
Comment 1 Sergio Martins 2021-06-21 18:57:08 UTC
This is fixed in master branch, will be part of 1.10
Comment 2 Sergio Martins 2021-06-21 18:58:19 UTC
Joerg might want to cherry-pick it to QtCreator (or even to 1.9 branch)
Comment 3 Jörg Bornemann 2021-06-22 07:35:11 UTC
Thanks for the heads-up!