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

Unable to close a QMdiSubWindow with a QVideoWidget

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: P2: Important
    • Resolution: Unresolved
    • Affects Version/s: 6.2.0
    • Fix Version/s: None
    • Component/s: Widgets: Main Window
    • Labels:
      None
    • Environment:
      Windows 10, Visual Studio 2019
    • Platform/s:
      Windows

      Description

      If I put a QVideoWidget inside a QMdiSubWindow, the sub window can't be closed.

      Simple code to reproduce the bug:

      QMainWindow* mainWindow = new QMainWindow();
      QMdiArea* mdiArea = new QMdiArea(mainWindow);
      mainWindow->setCentralWidget(mdiArea);
      QMdiSubWindow* subWindow = new QMdiSubWindow(mdiArea);
      subWindow->setWidget(new QVideoWidget());
      mdiArea->addSubWindow(subWindow);
      subWindow->show();
      mainWindow->show();

      If I try to close the sub window by clicking the close button, the sub window stays open.

      A workaround would be appreciated...

       

      EDIT:

      A QMdiSubWindow with a QVideoWidget inside prevents to close all other sub windows in the mdi area, even though they don't contain a QVideoWidget

      If I add this code to the example above...

      QMdiSubWindow* subWindow2 = new QMdiSubWindow(mdiArea);
      mdiArea->addSubWindow(subWindow2);
      subWindow2->show();

      ... I can't close both sub windows.

       

      Also, even if I delete the subWindow with the QVideoWidget, I can't close any sub window added to the mdiArea (regardless it is added after or before the deletion)

        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:
            puffosauro Fabio Dago
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes