Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import QtQuick 1.0
- Rectangle {
- width: 640
- height: 480
- Text {
- anchors.centerIn: parent
- font.pixelSize: 100
- color: "red"
- text: "Hello world"
- MouseArea {
- anchors.fill: parent
- onClicked: { parent.rotation += 180 }
- }
- Behavior on rotation {
- NumberAnimation {
- easing.type: "InExpo";
- duration: 1000
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement