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. Is there a way to differentiate between bound and unbound properties in C++?
Forum Updated to NodeBB v4.3 + New Features

Is there a way to differentiate between bound and unbound properties in C++?

Scheduled Pinned Locked Moved QML and Qt Quick
1 Posts 1 Posters 1.6k 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.
  • B Offline
    B Offline
    b.roth
    wrote on last edited by
    #1

    Hello fellow Qt Quick enthusiasts,

    is there any way to figure out if a component's property was set statically or if it receives its values through a binding? I did not find a solution using "QDeclarativeProperty":http://doc.qt.nokia.com/4.7-snapshot/qdeclarativeproperty.html

    @property int test: 20 // static assignment
    property int test: someObject.someValue // dynamic binding@

    Another question related to this is, if there exists a possibility to access QML ids from C++ or if this is technologically impossible.

    Greets,
    Bernhard

    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