aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/qml/qqmlecmascript/data/groupPropertyInstantiationOrder.qml
blob: 626d1e4225339bc75e24a86d65dbdf4ffcdba6c2 (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
import QtQuick 2.15

Item {

    width: 100
    height: 100

    component Screen01 : Rectangle {

        property Text myText: text1

        id: root

        width:  100
        height: 100

        Text {
            id: text1
            anchors.centerIn: parent
            color: "salmon"
            font.pixelSize: 14
        }
    }

    Screen01 {
        id: screen1
        property int speed : 42
        property int final_size: 14


        myText{
            font.pixelSize: 50 - final_size
            text: speed
        }
    }
}