summaryrefslogtreecommitdiffstats
path: root/basicsuite/Basic Qt Quick2 App/main.qml
blob: 4b57ab32d553442163245891dd77a28f40758421 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
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 }
    }
}