aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qquickloader/data/parented.qml
blob: 1c19d4d1a5010f8c85c7cb57a9ccbc8a1afdb51a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import QtQuick 2.0

Item {
    id: root
    width: 300; height: 300

    Component {
        id: comp
        Rectangle {
            objectName: "comp"
            parent: root
            anchors.fill: parent
            color: "blue"
        }
    }

    Loader {
        width: 200; height: 200
        sourceComponent: comp
    }
}