Files
qt-creator/tests/manual/qml/testfiles/states.qml
2010-02-25 09:48:19 +01:00

38 lines
703 B
QML

import Qt 4.6
Rectangle {
id: rect
width: 200
height: 200
Text {
id: text
x: 66
y: 93
text: "Base State"
}
states: [
State {
name: "State1"
PropertyChanges {
target: rect
color: "blue"
}
PropertyChanges {
target: text
text: "State1"
}
},
State {
name: "State2"
PropertyChanges {
target: rect
color: "gray"
}
PropertyChanges {
target: text
text: "State2"
}
}
]
}