[Qt-qml] How to update item within a Row

Abhishek abhishekworld at gmail.com
Sun Jan 2 17:00:38 CET 2011


Well I don't think that is possible because,

As i understand(check qt/src/graphicsitems/qdeclarativerepeater.cpp)
*Repeater* will create all element dynamically so no Id for each item  and
also there is no method or property which returns the list of item created
by Repeater and same goes to Row, it also doesn't have any method or
property to give the list of Item in Row so one cant Iterate over and find
the Item at given Index.

Thanks


On Sun, Jan 2, 2011 at 5:52 PM, Mark Constable <markc at renta.net> wrote:

> Newb question, if I use something like the below Row construct,
> how can I find and update, say, the content of the 4th item?
>
>  Row {
>    id: desk
>    width: view.width
>    height: view.height
>    Repeater {
>      model: 10
>      Rectangle {
>        id: content
>        width: view.width
>        height: view.height
>        Text {
>          anchors.centerIn: parent
>          text: "<h1>Desktop "+(index+1)+"</h1>"
>        }
>      }
>    }
>  }
> _______________________________________________
> Qt-qml mailing list
> Qt-qml at qt.nokia.com
> http://lists.qt.nokia.com/mailman/listinfo/qt-qml
>



-- 
Abhishek Patil
http://thezeroth.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt.nokia.com/pipermail/qt-qml/attachments/20110102/3e121f3b/attachment.html 


More information about the Qt-qml mailing list