diff options
Diffstat (limited to 'basicsuite/Basic Qt Quick2 App/main.qml')
-rw-r--r-- | basicsuite/Basic Qt Quick2 App/main.qml | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/basicsuite/Basic Qt Quick2 App/main.qml b/basicsuite/Basic Qt Quick2 App/main.qml new file mode 100644 index 0000000..4b57ab3 --- /dev/null +++ b/basicsuite/Basic Qt Quick2 App/main.qml @@ -0,0 +1,37 @@ +import QtQuick 2.0 + +Rectangle { + width: 600 + height: 400 + + gradient: Gradient { + GradientStop { position: 0; color: "aquamarine" } + GradientStop { position: 1; color: "black" } + } + + Text { + anchors.centerIn: parent + text: "Basic Application" + font.pixelSize: parent.height * 0.1 + color: "white" + style: Text.Raised + } + + Rectangle { + border.width: 1 + border.color: "lightsteelblue" + color: "steelblue" + + antialiasing: true + + width: 100 + height: 100 + + anchors.bottom: parent.bottom + anchors.left: parent.left + + anchors.margins: 100 + + NumberAnimation on rotation { from: 0; to: 360; duration: 5000; loops: Animation.Infinite } + } +} |