import QtQuick 2.2 Item { id: window width: 320; height: 440 Image { id: sampleImage source: "face-smile.png" anchors.verticalCenter: parent.verticalCenter anchors.right: parent.right anchors.rightMargin: 20 fillMode: Image.PreserveAspectFit } Rectangle { id: rigidBox width: 100 height: 50 color: "black" anchors.verticalCenter: parent.verticalCenter anchors.left: parent.left anchors.leftMargin: 20 } SequentialAnimation { id: rotationAnimatorImage running: true loops: Animation.Infinite PropertyAnimation { target: sampleImage properties: "rotation" from: 0 to: 360 duration: 10000 } } ParallelAnimation { id: multipleAnimator running: true loops: Animation.Infinite RotationAnimator { id: rotationAnimator target: rigidBox from: 0 to: 360 duration: 10000 } } }