Alessandro Bonazzi 8c43d5cf2f Patch level : 12.00
Files correlati     : cg0.exe cg0700a.msk cg0700b.msk cg3.exe cg4.exe

Bug                 :

Commento:
Merge 1.0 libraries
2025-04-06 00:42:21 +02:00

31 lines
562 B
QML

import QtQuick 1.0
Rectangle {
width: 400; height: 400
Rectangle {
id: myRect
objectName: "MyRect"
x: 5; y: 5
width: 100; height: 100
color: "red"
}
MouseArea {
id: clickable
anchors.fill: parent
}
Item {
id: newParent
transform: Rotation { angle: 30; axis { x: 0; y: 1; z: 0 } }
}
states: State {
name: "reparented"
when: clickable.pressed
ParentChange {
target: myRect
parent: newParent
}
}
}