[Qt-qml] enumerations in QML

Gregory Schlomoff gregory.schlomoff at gmail.com
Thu Aug 5 07:24:20 CEST 2010


Thanks Bea, that's exactly what I needed!

Yes, should be nice to see that in the reference documentation

geg

On Thu, Aug 5, 2010 at 12:03 PM,  <bea.lam at nokia.com> wrote:
>
> 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