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

32 lines
570 B
QML

import QtQuick 1.0
Rectangle {
id: newParent
width: 400; height: 400
Item {
scale: .5
rotation: 15
x: 10; y: 10
Rectangle {
id: myRect
objectName: "MyRect"
x: 5
width: 100; height: 100
color: "red"
}
}
MouseArea {
id: clickable
anchors.fill: parent
}
states: State {
name: "reparented"
when: clickable.pressed
ParentChange {
target: myRect
parent: newParent
}
}
}