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. QML & QObject's Dynamic Properties

QML & QObject's Dynamic Properties

Scheduled Pinned Locked Moved Solved QML and Qt Quick
3 Posts 1 Posters 228 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.
  • V Offline
    V Offline
    VeNToR
    wrote on last edited by
    #1

    Hi;

    I am trying to access QObject's dynamic properties from QML. Object is ok in QML but cannot reach any dynamic properties ? (e.g. in QML, { myObject.myProperty; }. It is always null.

    Thnx.

    1 Reply Last reply
    0
    • V Offline
      V Offline
      VeNToR
      wrote on last edited by
      #2

      I solved the problem by converting to QObject to QJSValue and then using the function setProperty of QJSValue.

      Thnkx for all...

      1 Reply Last reply
      0
      • V Offline
        V Offline
        VeNToR
        wrote on last edited by
        #3

        The better way is using QQmlProperty.

        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