Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-85781

Qt.callLater() is not effective when being used in an onDropped handler

    XMLWordPrintable

Details

    • macOS

    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.
       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            michaelvoigt Michael Voigt
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes