Setting the model inside a ListView inside a Repeater



  • @ 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?


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.