demo/kitchen-sink/docs/qml.qml
raw| 1 | // A simple example |
| 2 | import QtQuick 2.7 |
| 3 | import QtQuick.Controls 2.3 |
| 4 | |
| 5 | Rectangle { |
| 6 | color: "red" |
| 7 | anchors.fill: parent |
| 8 | |
| 9 | Text { |
| 10 | text: "WEEEEEEEEEE" |
| 11 | font.pixelSize: 50 |
| 12 | color: "white" |
| 13 | anchors.centerIn: parent |
| 14 | RotationAnimator on rotation { |
| 15 | running: true |
| 16 | loops: Animation.Infinite |
| 17 | from: 0 |
| 18 | to: 360 |
| 19 | duration: 1500 |
| 20 | } |
| 21 | } |
| 22 | } |