Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.8.0, 5.12.0 Beta 4
-
3e9b752bf4114b2b06e2f8f65aad67606dfc0215
Description
This is a clone of QTBUG-19741, which is closed but is still broken in Qt 5.8.
When declaring in the same class one enumeration, the corresponding Q_ENUM's, and a Q_INVOKABLE function with the enumeration in parameter, the function can be called from qml.
But if the enumeration comes from another class, the Q_INVOKABLE function cannot be called with the following error message:
"Error: Unknown method parameter type"
Attachments
Issue Links
- is duplicated by
-
QTBUG-76849 Q_ENUMs from one class cannot be used as a Q_INVOKABLE function parameter of another class when being in a namespace
- Closed
-
QTBUG-71573 Issue when passing enum types as arguments declared in different class
- Closed
- relates to
-
QTBUG-87170 No indication of the root cause or solution when enum parameter of signal is not recognised
- Open
-
QTBUG-55196 Non-local enums undefined in QML
- Closed