Priority: P2: Important
Affects Version/s: 6.2.0, 6.2.1
Fix Version/s: 6.2.2
Component/s: Widgets: Main Window
Visual Studio 2019
Windows SDK 10.0.17763.0
Microsoft Visual C++ Compiler 16.6.30309.148 (amd64)
OpenGL version: 4.6.0 - Build 184.108.40.20662
GLSL version: 4.60 - Build 220.127.116.1162
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.