Quantcast
Channel: Qt DevNet forums: Qt Quick 1283365070**
Viewing all articles
Browse latest Browse all 4972

Returning and Enum to QML using a Q_INVOKABLE method

$
0
0
Is it possible to pass enums from a C++ Q_OBJECT class using Q_INVOKABLE to a QML implementation. There is an error that I am getting with it: main.qml:185: Error: Unknown method return type: FaultWarningItem::ItemType This happens when I attempt to return a enum as part of the Q_INVOKABLE: Q_INVOKABLE FaultWarningItem::ItemType getItemErrorType(void);

Viewing all articles
Browse latest Browse all 4972

Trending Articles