EQL5/examples/M-modules/quick/quickwidget/qml/example-1.qml

21 lines
406 B
QML

import QtQuick 2.0
Rectangle {
id: root
Rectangle {
property int d: 100
id: square
width: d
height: d
anchors.centerIn: parent
color: "coral"
NumberAnimation on rotation { from: 0; to: 360; duration: 2000; loops: Animation.Infinite; }
}
Text {
anchors.centerIn: parent
text: "Qt Quick running in a widget"
}
}