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. Correct form of feeding data from C++ to fill a GridLayout
Forum Updated to NodeBB v4.3 + New Features

Correct form of feeding data from C++ to fill a GridLayout

Scheduled Pinned Locked Moved Unsolved QML and Qt Quick
1 Posts 1 Posters 110 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.
  • T Offline
    T Offline
    TiagoSD
    wrote on last edited by
    #1

    Hello.

    I have a QML interface that among its components has a GridLayout that I want to dynamically fill with entries from a Custom component that I created in another qml file. That custom component (called an WorklistItem) requires about a dozen fields to be initialized to be used.

    The C++ code receives updates with lists of such entities (from a remote server ) that should be displayed with such components in the GridLayout.

    What is the best form to signal/ transfer a list of composite data originated in C++ to QML to feed a Gridlayout? I am new in QtQuick and so I might have not understood some terminologies making me miss some example on that, but I could not find any simple such 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