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

    • Linux/X11
    •  dab0ef3670 (qt/qtbase/dev) dab0ef3670 (qt/tqtc-qtbase/dev) 1fc088079d (qt/tqtc-qtbase/6.2) 909637b49f (qt/qtbase/6.4) 909637b49f (qt/tqtc-qtbase/6.4) 0bea85faa4 (qt/qtbase/6.3) 0bea85faa4 (qt/tqtc-qtbase/6.3)

    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

        Issue Links

          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
              ligang li yigang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews