Bug 452845

Summary: QTranslator::load common antipattern
Product: [Developer tools] clazy Reporter: Roman <dismine>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: REPORTED ---    
Severity: normal CC: smartins
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.