summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeloader/data/AnchoredLoader.qml
blob: 5d02dae78d9fd4c6ae26a67fa4ab0fbb11a549ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import Qt 4.7

Rectangle {
    width: 300
    height: 200
    color: "blue"
    Loader {
        objectName: "loader"
        anchors.fill: parent
        sourceComponent: Component {
            Rectangle { color: "red"; objectName: "sourceElement" }
        }
    }
}