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

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