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

QWindow in a container prevents QMdiSubWindow close

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 6.2.2
    • 6.2.0, 6.2.1
    • Widgets: Main Window
    • Qt 6.2.0-0-202109270531
      Visual Studio 2019
      Windows SDK 10.0.17763.0
      Microsoft Visual C++ Compiler 16.6.30309.148 (amd64)
      OpenGL version: 4.6.0 - Build 26.20.100.7262
      GLSL version: 4.60 - Build 26.20.100.7262
    • Linux/X11, macOS, Windows

    Description

      It appears that the Qt Event Loop stops processing close events when a QSurface3DSeries is put into a QMdiSubWindow.

       

      The attached zip contains the Qt DataVisualization 3D Surface example with the following minor tweaks:

      • A QMdiArea is set as the central widget of a QMainWindow
      • The Q3DSurface container widget is inserted into a QMdiSubWindow

       

      As you will see, the sub-window cannot be closed with the Q3DSurface present. The sub-window will close normally if you substitute for another widget such as a QLabel.

       

      This seems like a Qt 6.2 regression. It is not present in Qt 5.15.

       

      Also worth noting, in another project that is not attached; Calls to QApplication::quit() are ignored when the Q3DSurface container widget is inserted into a QMdiSubWindow.

       

      Attachments

        1. Demo.mp4
          2.62 MB
        2. surface.zip
          192 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vhilshei Volker Hilsheimer
            rudyb Rudy Bermudez
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes