Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. Issue with passing a QFlag specialization to QML
Forum Updated to NodeBB v4.3 + New Features

Issue with passing a QFlag specialization to QML

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 282 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • SiN_BizkitS Offline
    SiN_BizkitS Offline
    SiN_Bizkit
    wrote on last edited by
    #1

    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?

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved