Files
qt-creator/tests/manual/qml/testfiles/subcomponent.qml
Kai Koehne 31f7c87537 QmlDesigner: Fix StatesView for switching subcomponents
Reviewed-by: Thomas Hartmann
2010-03-09 12:23:21 +01:00

18 lines
289 B
QML

import Qt 4.6
Rectangle {
x: 640
y: 480
Component {
id: redSquare
Rectangle {
color: "red"
width: 100
height: 100
}
}
Loader { sourceComponent: redSquare;}
Loader { sourceComponent: redSquare; x: 20 }
}