projects
/
profile
/
ivi
/
qtdeclarative.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Initial import from the monolithic Qt.
[profile/ivi/qtdeclarative.git]
/
tests
/
auto
/
declarative
/
qdeclarativeloader
/
data
/
SetSourceComponent.qml
1
import QtQuick 1.0
2
3
Item {
4
function clear() {
5
loader.sourceComponent = undefined
6
}
7
Component { id: comp; Rectangle { width: 100; height: 50 } }
8
Loader { id: loader; sourceComponent: comp }
9
}