Details
-
Bug
-
Resolution: Unresolved
-
P1: Critical
-
None
-
6.5.1
-
None
Description
When I try doing a drag and drop of my own components from Qt/QML app and I drag the element to the desktop or any other application for Windows and Linux it gives the appropriate value for the drop. Whether it was cancelled or copied and so on, but for macOS it only gives that the event was cancelled even though the drop was a success and a copy was made
This is the code that is used
Image {
// Some other code
Drag.dragType: Drag.Automatic
Drag.supportedActions: Qt.CopyAction
Drag.mimeData:
Drag.onDragFinished: function (dropAction) {
if (dropAction || Qt.platform.os === "osx")
else
{ console.log("Drag event was cancelled") }}
DragHandler {
id: dragHandler
onActiveChanged: if (active) {
parent.grabToImage(function (result)
)
} else
}
}