This commit is contained in:
2025-09-28 17:05:51 +08:00
parent 8eb80ab66d
commit d97fa3e0fe
398 changed files with 18737 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
import QtQuick
Window {
id: rooId
width: 640
height: 480
visible: true
title: qsTr("Behavior")
Rectangle{
id: containerRectId
anchors.fill: parent
color: "beige"
Rectangle{
id: containedRectId
width: 100
height: 100
x: 50
y: 50
color: "dodgerblue"
Behavior on x{
NumberAnimation{
duration: 1000
}
}
}
MouseArea{
anchors.fill: parent
onClicked: (mouse) => { //Arrow function
containedRectId.x = mouse.x
}
}
}
}