Details
-
Task
-
Resolution: Done
-
P2: Important
-
None
-
None
-
9140731319269c75f24e80075750971e00844906
Description
A module API based on QObject should allow enums to be exposed, e.g.
class MyApi : public QObject { Q_ENUMS(MyEnum) public: enum MyEnum { A, B }; Q_INVOKABLE myFunction(MyEnum e); };
import MyApi as MyApi
Component.onCompleted: MyApi.myFunction(MyApi.A)