Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

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