When adding an item to the view, it does not need to be guarded against removal, so you can simplify the GridView.onAdd
handler by removing both PropertyAction
s, and then also the SequentialAnimation
becomes unnecessary.
In your code, the NumberAnimation
animates the scale to 0
, making the individual delegates infinitely small as a result. Try this:
delegate: Image {
..
..
scale: 0 /* When a delegate is created, scale is initially zero */
GridView.onAdd: NumberAnimation {
target: gridDel
property: "scale"
to: 1 /* When the delegate is added to the view, */
/* the scale will be animated to 1 */
duration: 250
easing.type: Easing.InOutQuad
}