Details
-
Bug
-
Resolution: Invalid
-
P2: Important
-
None
-
5.15.1
Description
- Download the filebrowser example from the https://www.qt.io/blog/custom-window-decorations and https://github.com/johanhelsing/qt-csd-demo
- add the following to the DragHandler
onActiveChanged: if (active) { window.startSystemMove(); } else { console.log("Move ends"); }
- run the example
- move it around, stop and release the mouse with out moving
*Current result: *nothing is printed, only when the mouse is moved
*Expected result: * the print happens once the mouse is released
Workaround:
DragHandler { id: dh grabPermissions: TapHandler.CanTakeOverFromAnything onActiveChanged: if (!active) { console.log("Move ends"); } onCentroidChanged: { if (active) { window.x += dh.centroid.position.x - dh.centroid.pressPosition.x; window.y += dh.centroid.position.y - dh.centroid.pressPosition.y; } } }