Details
-
Bug
-
Resolution: Incomplete
-
P1: Critical
-
None
-
5.13.1
-
None
Description
In our use case, the action that is supposed to be triggered by dropping an element causes the source of the DnD action to get deleted eventually. That leads to a crash, as the onDropped handler is being executed within the scope of the QDragManager::drag() function (in the platform depended part const Qt::DropAction result = m_platformDrag->drag(m_object).
It is not possible to delay this action via Qt.callLater in the onDropped handler, because the queued events are aleady being processed before the control flow returns from m_platformDrag->drag(m_object) back to the QDragManager::drag() function.