Bug 370713 - new check: Q_INVOKABLEs returning QObject
Summary: new check: Q_INVOKABLEs returning QObject
Status: CONFIRMED
Alias: None
Product: clazy
Classification: Developer tools
Component: general (show other bugs)
Version: unspecified
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Sergio Martins
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-10-13 21:42 UTC by Sergio Martins
Modified: 2020-08-25 16:58 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

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