i didn't use namespace but i don't think it's managed into qml (i think it is to use in the export of your class)
to use the enum just type C.presenceValue in the qml
i didn't use namespace but i don't think it's managed into qml (i think it is to use in the export of your class)
to use the enum just type C.presenceValue in the qml
Did you find a solution about that problem ?
the Q_ENUMS declaration should exist within a class which inherits QObject, and contains the Q_OBJECT macro.
then, the simplest method would be to expose an instance of this class via QDeclarativeContext::setContextProperty().
once referenced as a Q_ENUM, an enumeration instance of that type can be referenced as a standard property by Qt: http://www.maemonokian900.com/maemo-...-enums-in-qml/
Bookmarks