| Summary: | QProcess::startDetached gives qt6-deprecated-api-fixes warning | ||
|---|---|---|---|
| Product: | [Developer tools] clazy | Reporter: | Jonas Kvinge <jonas> |
| Component: | general | Assignee: | Jörg Bornemann <joerg.bornemann> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | CC: | smartins |
| Priority: | NOR | ||
| Version First Reported In: | unspecified | ||
| Target Milestone: | --- | ||
| Platform: | openSUSE | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | ||
| Sentry Crash Report: | |||
This is fixed in master branch, will be part of 1.10 Joerg might want to cherry-pick it to QtCreator (or even to 1.9 branch) Thanks for the heads-up! |
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