Summary: | new-check: Avoid explicit qRegisterMetaType / Q_DECLARE_METATYPE | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | aklitzing |
Component: | general | Assignee: | Unassigned bugs <unassigned-bugs-null> |
Status: | CONFIRMED --- | ||
Severity: | wishlist | CC: | smartins |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: | |||
Attachments: | Example for QMetaObject::RegisterMethodArgumentMetaType |
Description
aklitzing
2018-02-07 08:20:53 UTC
Sounds interesting! Can you attach a sample .cpp file where running moc on it would generate the qRegisterMEtaType ? Created attachment 112215 [details]
Example for QMetaObject::RegisterMethodArgumentMetaType
This allows moc to generate "QMetaObject::RegisterMethodArgumentMetaType" with qRegisterMetaType. If you use a forward-declaration the moc is not enable to recognize it and won't generate qRegisterMetaType. Sadly if you remove "QObject" of DeviceListEntry it is the same problem. Should be available for Q_GADGET, too. That should work but moc needs to be fixed for that. :-( |