Bug 452845 - QTranslator::load common antipattern
Summary: QTranslator::load common antipattern
Status: REPORTED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (other bugs)
Version First Reported In: unspecified
Platform: Other Linux
: NOR normal
Target Milestone: ---
Assignee: Unassigned bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-04-22 09:02 UTC by Roman
Modified: 2022-04-22 09:02 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 Roman 2022-04-22 09:02:20 UTC
Hi.

I don't know if this is a good idea, but in case this is possible, it would be helpful for many projects. There is a common antipattern when loading translations in Qt better described in this article https://www.kdab.com/fixing-a-common-antipattern-when-loading-translations-in-qt/. My project also had this issue. Would be nice if clazy could catch such a case.