blob: 920cde4c45a72d41fff75d0397a54d8d175fadb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
// Copyright (C) 2019 The Qt Company Ltd.
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
import QtQuick 2.0
Item {
Rectangle {
width: 100
height: 100
anchors.centerIn: parent
color: "red"
NumberAnimation on rotation { from: 0; to: 360; duration: 2000; loops: Animation.Infinite; }
Rectangle {
color: "gray"
width: 50
height: 50
anchors.centerIn: parent
}
}
}
|