1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import Qt 4.6 Image { id: rainItem property int frame : 1; property string rainType: "rain"; source: "images/" + rainType + "_0" + rainItem.frame + ".png" frame: NumberAnimation { repeat: true duration: 1100 from: 1; to: 5; } }