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

Applicaton blocked forever if Drag-Drop in progress while modal dialog opens

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.12
    • None
    • Debian Jessie, gcc 4.8.4, Qt 5.6.0
      Windows 7, MSVC 14.0, Qt 5.6.0
      Debian Buster, gcc 8.3.0, Qt 5.12.4 LTS (OK!)
      Windows 7, MSVC 14.0, Qt 5.12.4 LTS
    • Linux/X11, Windows

    Description

      If a modal dialog opens while a drag operation is in progress then the application is blocked and in some cases the application must be killed.

      The attached source code shows this effect: A QMainWindow is opened which containes a QListWidget and a toolbar-button labelled„Dialog“. If this button is pressed then a timer starts which openes a QMessageBox after 10 seconds.

      Please start this program, click the button and then drag one or more of the list items around. Keep them at the mouse until the dialog opens. The effect depends on the operating system and the Qt version in a way that it seems the issue has been fixed for linux but made worse for Windows:

       

      1. Debian Jessie, gcc 4.8.4, Qt 5.6.0:

      The drag operation blocks. The dialog blocks as well. Hitting the ESC button leads to a drop operation at a random place. Then the dialog can be closed.

       

      2. Debian Buster, gcc 8.3.0, Qt 5.12.4 LTS

      The drag operation is aborted. (OK!)

       

       3. Windows 7, MSVC 14.0, Qt 5.6.0

      The drag operation blocks. The dialog blocks as well. Hitting the ESC button cancels both – in this simple example. In more complex scenarios even ESC doesn’t help always.

       

      4. Windows 7, MSVC 14.0, Qt 5.12.4 LTS

      The application is blocked and nothing can be done except killing it via Task Manager.

       

      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:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes