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

creating QDockWidget after application startup prevents correct termination on Ubuntu

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.1.0, 5.15.0 RC2
    • Fix Version/s: None
    • Component/s: GUI: Window management
    • Labels:
      None
    • Environment:
      Ubuntu 20.04.2 LTS (64bit)
      Windowin System X11
      GNOME Version 3.36.8
    • Platform/s:
      Linux/X11

      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

        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:
            felixschluter felix schl
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes