Qt World Summit: Register Today!

Issue with passing a QFlag specialization to QML

  • Hi everyone.
    I have a question about namespace-scoped QFlags definitions. I defined an enum and a corresponding QFlags-specialization type inside a namespace marked with Q_NAMESPACE macro, also I registered this namespace's metaobject in QML system via qmlRegisterUncreatableMetaObject. The problem is that I can't use the flag as a Q_PROPERTY of a Q_GADGET-structure - the field has an undefined type and property on the qml-part. The structure itself registered properly - i have a bunch of other fields and enums in it and everything works fine, but adding QFlags property isn't working.
    Does anybody know something related to this issue?

Log in to reply