Files
qt-creator/tests/manual/qml/testfiles/states.qml
2010-04-13 15:15:15 +02:00

45 lines
808 B
QML

import Qt 4.7
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"
}
}
]
Image {
id: image1
x: 41
y: 46
source: "images/qtcreator.png"
}
}