Files
I-DeskPet/Functions/MovePet.qml
T
2025-10-21 22:29:38 +02:00

17 lines
398 B
QML

import QtQuick
MouseArea {
id: mouseArea
anchors.fill: parent
hoverEnabled: true
drag.target: null // Not using built-in drag behavior
onPositionChanged: {
if (mouse.buttons & Qt.LeftButton) {
petMarch.mleft = mouse.x
petMarch.mbottom = mouse.y
console.log("mleft:", petMarch.mleft, "mbottom:", petMarch.mbottom)
}
}
}