[Interest] Getting started with QML

Alex Strickland sscc at mweb.co.za
Thu Dec 15 10:39:02 CET 2011


On 2011/12/07 01:59 PM, kai.koehne at nokia.com wrote:

> My suggestion would be to look into (nested) ListViews (or GridViews) + appropriate Model(s) behind the scenes.

     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? :)

Regards
-- 
Alex



More information about the Interest mailing list