summaryrefslogtreecommitdiffstats
path: root/tests/auto/declarative/qdeclarativeloader/data/SetSourceComponent.qml
blob: d99dd01f35c40d68346e02ac0cb97b37e7cfc581 (plain)
1
2
3
4
5
6
7
8
9
import Qt 4.7

Item {
    function clear() {
        loader.sourceComponent = undefined
    }
    Component { id: comp; Rectangle { width: 100; height: 50 } }
    Loader { id: loader; sourceComponent: comp }
}