Details
-
Bug
-
Resolution: Duplicate
-
Not Evaluated
-
None
-
6.0.3, 6.1.0 RC
-
None
Description
Steps to reproduce:
- Open any Qt gui app, place a breakpoint in QWindowSystemInterface::handlePrimaryScreenChanged.
- Open display settings, change main display (you need at least two monitors for this to work).
- Breakpoint is never hit (and thus QGuiApplication:: primaryScreen is not changed, and QGuiApplication:: primaryScreenChanged is not emitted).
I did some digging and it looks like the right place to call QWindowSystemInterface::handlePrimaryScreenChanged would be from inside the QWindowsScreen::handleChanges. I've attached a patch.