Details
-
Suggestion
-
Resolution: Fixed
-
Not Evaluated
-
None
-
None
-
Foundation Sprint 72
Description
moc should warn if I try to do something stupid like this:
class MyClass : public QObject { Q_OBJECT Q_PROPERTY(bool prop READ prop) bool m_prop; public: Q_INVOKABLE bool prop() { return m_prop; } }
And likewise if the bool prop() method were a slot since in both cases the method name will clash with the property name when used from a QML/Javascript context.
Attachments
For Gerrit Dashboard: QTBUG-57688 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
447476,6 | moc: Warn if methods of Q_PROPERTY are used with Qt magic macros | dev | qt/qtbase | Status: NEW | +1 | 0 |