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

Delete a QDockWidget while drag in progress causes crash

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.5.4, 6.6.2, 6.7.0 FF
    • 5.15.0
    • Widgets: Main Window
    • None
    • Windows 10
      Qt 5.15.0
    • Windows
    • e6d85cf28 (dev), a884cf6e8 (tqtc/lts-6.5), 9557d1ca9 (6.6)

    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

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes