blob: 9680e806b894854135308e918a1642e7261e0897 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
import QtQuick
Item {
id: root
property alias childWidth: firstChild.width
property alias childRotation: firstChild.rotation
property double myrotation: 100
property double myrotation2: 200
height: 400
Item {
id: firstChild
height: parent.height
width: height
rotation: root.myrotation
}
states: State {
name: "reparented"
ParentChange { target: firstChild; parent: otherChild; width: 2*height; rotation: root.myrotation2}
}
Item {
height: parent.height
id: otherChild
}
}
|