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

Undocking tabbed widget from floating window creates empty redundant window

    XMLWordPrintable

Details

    • Linux/X11, macOS
    • bbeff2a33 (dev), fd242e8ce (6.6), c02f8b9d4 (dev), c93ab8c2a (dev), 6e367fbb3 (6.6), b65e1141d (6.6), 2c96f5177 (dev), de5925b15 (6.6), 17372faf3 (dev), 66faeb99f (tqtc/lts-6.5), e6d85cf28 (dev), 320010bef (tqtc/lts-6.5), 7b3cf6177 (tqtc/lts-6.5)

    Description

      Given a QMainWindow with two tabbed QDockWidgets, if you follow these steps, in step 3, an extra window is created, and after all steps, you will have an app with no windows, and no way to shut the app down:

      1. Undock the tabbed dock widget group outside the main window to its own floating window, showing both tabs. The main window shows, but with no content.
      2. Undock one of the tabbed widgets from the floating window.
      3. Observe that a new empty redundant window is created. You may need to drag the window aside to see  the other QDockWidget in it's own floating window.
        At this point you will have 4 windows - the QMainWindow instance, one each of the two dock widgets, and this mystery empty window.
      4.  Now try to shut down the application from the application file menu.
      5. Observe that the application never terminates.

      Note:

      The redundant floating window is close-able but despite closing all of the windows, app shutdown is blocked. The user needs to manually force quit the application from activity monitor to quit the application.

      The app asserts in debug mode when we try to dock any of the tabbed widgets into the redundant floating window. (separate bug will be created for this and linked to this issue).

      Minimal reproducer app , Recording and stack trace attached.

      Attachments

        Issue Links

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

          Activity

            People

              axelspoerl Axel Spoerl
              kkyzivat Keith Kyzivat
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: