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

creating QDockWidget after application startup prevents correct termination on Ubuntu

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.4, 6.6.2, 6.7.0 FF
    • 6.1.0, 5.15.0 RC2
    • GUI: Window management
    • None
    • Ubuntu 20.04.2 LTS (64bit)
      Windowin System X11
      GNOME Version 3.36.8
    • Linux/X11
    • e6d85cf28 (dev), a884cf6e8 (tqtc/lts-6.5), 9557d1ca9 (6.6)

    Description

      Creating docking widgets after application startup prevents correct termination on my Ubuntu 20.4.2 installation, if those dockwidgets are not closed manually before terminating the app. It leaves behind a zombie-taskitem in my taskbar that cannot be closed (because the program is terminated already).

       

      If a docking widget is newly created after app startup is completed and the MainWindow is shown, and the app is then closed - then the taskbar item representing that program remains visible and cannot be closed or otherwise removed until gnome-shell is restarted.

       

      The effect also occurs when undocking a QDockWidget that was created in MainWindow ctor. However, everything is fine when QDockWidges are only ever created inside the MainWindow ctor (floating or docked) and not undocked or redocked. Also, manually closing all QDockWidgets created after startup before closing the app works fine too.

       

      Reproduce:

      Be on a ubuntu 20.04.2 machine.

      In QtCreator, select MainWindow example. Build and start.

      Click "Dock Widgets -> Add dock widget" and create one OR undock an existing docked widget.

      Close program while the new dockwidget is still visible.

      Result: The program process terminates, but leaves behind a zombieitem in the ubuntu taskbar.

      Attachments

        For Gerrit Dashboard: QTBUG-94097
        # Subject Branch Project Status CR V

        Activity

          People

            axelspoerl Axel Spoerl
            felixschluter felix schl
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes