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

Delete a QDockWidget while drag in progress causes crash

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P1: Critical
    • Resolution: Unresolved
    • Affects Version/s: 5.15.0
    • Fix Version/s: None
    • Component/s: Widgets: Main Window
    • Labels:
      None
    • Environment:
      Windows 10
      Qt 5.15.0
    • Platform/s:
      Windows

      Description

      Start the attached application:

      A QMainWindow appears with a QDockWidget in it. The QDockWidget contains a QListWidget with some pre-defined list entries. After 5 seconds the QDockWidget is deleted by a QTimer which has been started in the main window constructor.

      Before the QDockWidget is deleted do one of the following:

      1. Drag the QDockWidget out of the QMainWindow and back in. Do this in a way that the drop area is marked but do not release the QDockWidget. Keep it grabbed by the mouse.
      2. Drag one of the list items in the QListWidget but do not drop it.

      Result: Crash in both cases as soon as the QDockWidget is deleted.

       

      Motivation:

      We are working on a huge multi-peer, multi-user system. Some user actions cause the creation or deletion of QDockWidget instances not only on their own but also on other peers. If one of the other users happens to drag either a QDockWidget or anything within it while this widget is deleted by an external user event than this peer crashes.

      We haven't found a reliable workaround so far because there is even no way to detect if such a drag action is currently in progress.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.quick.subscriptions Qt Quick and Widgets Team
            Reporter:
            cyril Harald Prasser
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes