[Qt-qml] QML + enum
Girish Ramakrishnan
girish at forwardbias.in
Sat Mar 5 11:41:56 CET 2011
Hi,
On Sat, Mar 5, 2011 at 1:10 PM, Gregory Schlomoff <
gregory.schlomoff at gmail.com> wrote:
> I don't think it's possible since you need to run Qt's MOC to make the type
> available to QML, and the MOC only works withs classes (with the Q_OBJECT
> macro), as far as I know.
>
>
You can also register enums of non-QObject derived classes using Q_GADGET
and qmlRegisterUncreatableType.
Girish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110305/05e58de2/attachment.html
More information about the Qt-qml
mailing list