| changeset 30 | 5dc02b23752f |
| 29:b72c6db6890b | 30:5dc02b23752f |
|---|---|
1 import Qt 4.7 |
|
2 |
|
3 Rectangle { |
|
4 id: myRect |
|
5 width: 400 |
|
6 height: 400 |
|
7 |
|
8 states: [ |
|
9 State { |
|
10 name: "state1" |
|
11 PropertyChanges { |
|
12 target: myRect |
|
13 onHeightChanged: console.log("Hello World") |
|
14 color: "green" |
|
15 } |
|
16 }, |
|
17 State { |
|
18 name: "state2"; extend: "state1" |
|
19 PropertyChanges { |
|
20 target: myRect |
|
21 color: "red" |
|
22 } |
|
23 }] |
|
24 } |