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. Dynamically populate a VisualItemModel
Forum Updated to NodeBB v4.3 + New Features

Dynamically populate a VisualItemModel

Scheduled Pinned Locked Moved QML and Qt Quick
3 Posts 3 Posters 2.2k 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.
  • D Offline
    D Offline
    drevil
    wrote on last edited by
    #1

    Is there a way to dynamically populate VisualItemModel ? Seems like all the examples I am finding in searches demonstrate basically statically populating a VisualItemModel for feeding the data in from a static-ish source.

    In my case I have the c++ side network connected to another system to visualize data, and the c++ creates qml objects dynamically and I want some of those objects to add information about themselves to a VisualItemModel as qml objects that may contain graphical elements and and text and such that may change over the lifetime of the dynamic entity, so the information presented from the VisualItemModel will need to be dynamic. I noticed the ListModel has such functionality for appending and removing and such on the qml side, what is the way to do that for qml objects? I could use the list model but I would prefer to use full qml objects for better flexibility and property binding and such.

    1 Reply Last reply
    0
    • W Offline
      W Offline
      wladek
      wrote on last edited by
      #2

      Hey drevil,

      Did you find a solution for this?
      I would also be interested.

      Thanks,
      wladek.

      1 Reply Last reply
      0
      • E Offline
        E Offline
        ephe
        wrote on last edited by
        #3

        Hi drevil,
        I would also be interested in the solution.
        Thank you!

        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