Bug 438998 - QProcess::startDetached gives qt6-deprecated-api-fixes warning
Summary: QProcess::startDetached gives qt6-deprecated-api-fixes warning
Status: RESOLVED FIXED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: openSUSE Linux
: NOR normal
Target Milestone: ---
Assignee: Jörg Bornemann
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-21 14:52 UTC by Jonas Kvinge
Modified: 2021-06-22 07:35 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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!