Bug 370713

Summary: new check: Q_INVOKABLEs returning QObject
Product: [Developer tools] clazy Reporter: Sergio Martins <smartins>
Component: generalAssignee: Sergio Martins <smartins>
Status: CONFIRMED ---    
Severity: wishlist CC: dushistov, smartins
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:

Description Sergio Martins 2016-10-13 21:42:18 UTC
This is source of many crashes in QML. Even when the object has parent or C++ ownership it might be bad practice.
Comment 1 Evgeniy A. Dushistov 2020-08-25 16:58:07 UTC
For me it was unexpected that class marked as Q_GADGET can not be returned via Q_INVOKABLE