Priority: P1: Critical
Affects Version/s: 6.2.2
Component/s: Widgets: Main Window
Commits:41f96866ee (qt/qtbase/dev) cefe02086b (qt/qtbase/6.2) 48c9f3b391 (qt/qtbase/6.3) cefe02086b (qt/tqtc-qtbase/6.2) 48c9f3b391 (qt/tqtc-qtbase/6.3) 41f96866ee (qt/tqtc-qtbase/dev)
Qt Widgets is often used in larger application, when a user interacion is required.
In these cases a QApplication begins and end his life cycle many times within the main application.
Now (Qt 6.2.2) the second run crash, but only when the mouse roll over the main window.
Using the user interface by keyboard (close using ALT+F4) it doesn't crash.
Affected/tested Qt versions:
- Qt 5.12.4 MinGW - works
- Qt 6.2.1 MinGW - crash
- Qt 6.2.1 MSVC - crash
- Qt 6.2.2 MinGW - crash
- Qt 6.2.2 Ubuntu - works
For our application it's a critical problem.
This is the minimum code that reproduce the bug (see attachment main.cpp)