import Qt 4.7
Rectangle {
id: root
width: 500
height: 500
property int vvv: 10
Repeater {
model: 10
Rectangle {
anchors.bottom: parent.bottom
x: (index*(width+10))-30
width: root.width / 12
height: Math.sin(index+vvv)*30+100/index + vvv
color: Qt.darker('blue', Math.cos(index/10))
Behavior on height { PropertyAnimation { } }
}
}
MouseArea {
anchors.fill: parent
onClicked: root.vvv += 30
}
}