[Qt-qml] enumerations in QML
bea.lam at nokia.com
bea.lam at nokia.com
Thu Aug 5 07:03:41 CEST 2010
On 05/08/2010, at 2:45 PM, ext Gregory Schlomoff wrote:
> Isn't there a way to expose an enum to QML with qRegisterType or something?
>
If an enum is exposed to Qt's Meta Object system using Q_ENUMS, the enum is automatically available to QML.
This is mentioned in http://doc.qt.nokia.com/4.7-snapshot/declarative-tutorials-extending-chapter4-custompropertytypes.html (but probably should be moved to some other reference documentation).
regards,
Bea
More information about the Qt-qml
mailing list