aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/quick/qquickdesignersupport/data/Component01.qml
blob: 463417445ca02c1ce5014725b8eea0a3066b3b90 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import QtQuick 2.9
import QtQuick.Window 2.3

Item {
    visible: true
    width: 640
    height: 480
    objectName: "componentRoot"

    Rectangle {
        objectName: "topLevelComplete"
        id: rectangle
        x: 378
        y: 91
        width: 100
        height: 100
        color: "#ffffff"
    }

    Item {
        id: element
        x: 14
        y: 39
        width: 120
        height: 120

        Rectangle {
            id: rectangle1
            objectName: "implemented"
            x: 43
            y: 52
            width: 110
            height: 110
            color: "#ffffff"

            Component.onCompleted: {
                rectangle1.color = "blue"
            }
        }
    }

    Component02 {
        id: element1
        x: 88
        y: 251
    }

    Component.onCompleted: {
        rectangle.color = "red"
    }
}