[Qt-qml] repeat: true syntax error rc1 SDK

Jason H scorp1us at yahoo.com
Fri Sep 10 07:10:48 CEST 2010


I get an error on the repeat:true line. Why? Docs say 'repeat' belongs to 
Animation.
Thanks!

importQt4.7 
Rectangle {
	width: 860
	height: 540
	gradient: Gradient {
		GradientStop { position: 1; color:"blue"}
		GradientStop { position: 0; color: "midnightblue"}
	}
	Image {
		anchors.centerIn: parent
		source: "23.jpg";
		opacity: 0.75
		smooth: true
		SequentialAnimation on scale {
			repeat: true
					PropertyAnimation {
						from: 2
						to: 2.5
						duration: 3000
					}
					PropertyAnimation{
						from: 2.5
						to: 2
						duration: 3000
					}
			}
	}
}


      



More information about the Qt-qml mailing list