I have an application where I want to show animation using QML for n seconds.
For e.g I want to change the size of rectangle for each second.The input will be an array storing size of the rectangle at each second.

input[5] ={10,20,30,5,9}

In this case I want to run simulation for 5 second for different sizes.
Initally the size of rectangle will be height=width=input[0].
On completion of a second the height=width=input[1] and so on.

I dont want to hardcode here as the input will be dynamic.
I am new to QML so don't know whether this requirement is possible to implement with QML.

Can anybody help me in this?

Thanks in advance.