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

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