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

Mark Constable markc at renta.net
Sun Jan 2 13:22:15 CET 2011


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>"
        }
      }
    }
  }


More information about the Qt-qml mailing list