Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Reasons to make Q_PROPERTY's BINDABLE for QML types defined from C++?
Forum Updated to NodeBB v4.3 + New Features

Reasons to make Q_PROPERTY's BINDABLE for QML types defined from C++?

Scheduled Pinned Locked Moved Unsolved General and Desktop
1 Posts 1 Posters 104 Views
  • 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.
  • M Offline
    M Offline
    morte
    wrote on last edited by morte
    #1

    Is there any advantages to declare Q_PROPERTY's of an QML type defined from C++ as BINDABLE in new code with with Qt 6.2+ (if binding mechanics itself not need at C++ side)?

    Bindable properties introduced in Qt 6.0 with lazy mechanics, which should improve binding performance for QML, but later it was observed that many existing properties in Qt not compatible with lazy evaluation and in Qt 6.1/6.2 bindable properties are no longer lazy evaluated. So no possible performance gain from lazy evaluation, but maybe there is any other reasons to declare properties of QML type via Q_OBJECT_BINDABLE_PROPERTY/BINDABLE?

    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