Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
6.5.3
-
None
Description
We have a use case in our application where two windows are shown in a toggle-like manner - displaying one window should hide the other window and vice versa. However, we've detected an issue where a supposedly hidden window reappears when we switch to the other window and alter the display settings on the current monitor to either a higher or lower resolution.
Steps to reproduce:
- Open the application.
- Maximize the application window and switch to the other window.
- Change the current monitor's display settings to a higher or lower resolution.
- Note the fatal error message.
Expected Result:
The originally displayed window should remain hidden when display settings are altered.
Actual Result:
The supposedly hidden window reappears when the display settings are changed.
Impact:
This is pretty critical issue for our product as we end up seeing a supposedly hidden window and could cause stability issue. While its easier to detect this programmatically (by listening to WindowActivate), solution for this would involve a considerable amount of hack thats not scalable in long run. Hence needed an official fix from Qt.
Note:
- This issue doesn't happen on macOS in our testing.
- This issue could also happen when waking the system from sleep while the window is in an unmaximized window state. However, this use case is reproducible only on certain machines.
- This was tested on Windows11.
- qtbug-123929.zipattached to reproduce the issue.
Attachments
Issue Links
- relates to
-
QTBUG-123924 Top level QWidget size synchronization Issue when switching monitors
- Reported