How to disable the drag animation in Mouse area, but i want to handle the yvlaue changes when dragged from 0 to item height
Unsolved
QML and Qt Quick
-
import QtQuick 2.15
import QtQuick.Window 2.15Window {
width: 640
height: 480
visible: true
title: qsTr("Hello World")Item { id: _item width: 100; height: 50; Rectangle { anchors.fill: parent color: "lightblue" } MouseArea { id: mouseA anchors.fill: parent drag.target: _item drag.axis: Drag.YAxis drag.minimumY: 0 drag.maximumY: _item.height property int initialY: _item.height property int yValue: _item.y onYValueChanged: { console.log("Mani Y value changed to:"+ yValue +" "+initialY); if (drag.active && initialY == yValue){ console.log("Mani Y value changed to:"+initialY); } } } }
}