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

Process the drop event in the same process, block processing in the local event, close and destroy the window that initiated the event, qt crashed

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.11.3
    • Fix Version/s: None
    • Component/s: GUI: Drag and Drop
    • Labels:
      None
    • Platform/s:
      Linux/X11

      Description

      In my application, I open two windows A and B. Both windows have a QListView control. Drag and drop the elements of QListView in window A to QListView in window B. In the dropevent event handler of QListView in window B.  Create a local event loop QEventLoop to process some logic, but this logic takes a long time to process. When the event loop has not ended, close window A and destroy window A. After the event loop ends, qt crashes. There is a demo written by me in the attachment.

        Attachments

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            ligang li yigang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews