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. Passing class object inside Q_PROPERTY and bind it with the QML file
Forum Updated to NodeBB v4.3 + New Features

Passing class object inside Q_PROPERTY and bind it with the QML file

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 2 Posters 817 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.
  • ? Offline
    ? Offline
    A Former User
    wrote on last edited by
    #1

    Hello,

    Is it possible to pass a class instance to Q_PROPERTY and bind it with the QML file. Also if that happens, how can we get the members defined inside the class in the QML file.

    Ansif

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

      Yes, I think it is possible, If your class is a QObject-dervied class.

      1 Reply Last reply
      0
      • ? Offline
        ? Offline
        A Former User
        wrote on last edited by
        #3

        [quote author="Vincent007" date="1394117877"]Yes, I think it is possible, If your class is a QObject-dervied class.[/quote]

        Can you give me an example ?

        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