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. Setting the model inside a ListView inside a Repeater
Forum Updated to NodeBB v4.3 + New Features

Setting the model inside a ListView inside a Repeater

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

    @ Grid {
    id: maingrid
    anchors.fill: parent
    columns: 3
    rows: 2

         Repeater {
             model: 6
             ListView {
                 width: parent.width / 3
                 height: parent.height / 2
                 model: orderModel
                 delegate: OrderLineDelegate {}
             }
         }
    

    @
    I have something like the above. Is it possible to set the orderModel
    externally for each ListView created by the Repeater from C++? In case
    you are tempted to answer only "Yes", how?

    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