The QWindowsScreenManager's m_displayChangeObserver window would still be alive at the time ~QWindowsContext would unregister window classes, resulting in a warning that was hidden by the default verbosity of QWindowsContext::verbose. The result was that we would get a warning when then trying to re-register the already registered window class. We now do what we do for m_powerNotification and m_powerDummyWindow, which is to destroy them explicitly before unregistering their class. Fixes: QTBUG-125058 Pick-to: 6.5 Change-Id: Id3b02237fdd81f734a58a2314a157cad1289a82c Reviewed-by: Oliver Wolff <oliver.wolff@qt.io> (cherry picked from commit 48cc43a1e00e564438227dc0c251c988cee22483) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%