Windows 11 Pro 22H2
Qt Version: 6.3.2
Laptop (Dell XPS 15 9570) with external screen
Laptop screen: 15", 1920x1080, 100% scaling
External screen: 27", 2560x1440, 100% scaling (I could also reproduce on a 27" 1920x1080 screen)
The external screen is set as primary screen.
e86fcae22 (dev), 777c97787 (6.5)
Increasing screen scaling results in the window and/or the content being too large.
Decreasing screen scaling results in a correct window size, but the content is too small.
Start the test program (It should start out on the primary screen).
- The window has the FramelessWindowHint and a green rectangle in each corner.
Click on the "Change screen" button, the window will move to the other screen.
Open the windows settings and change the screen scaling from 100% to 125% for the Laptop screen.
The resulting window is too large, including the content.
If the Laptop screen has a 125% scaling when starting the test program, and changing the scaling from 125% to 100%, the resulting window will be the correct size but the content is too small.
Or if increasing the scaling to 150% or 175% the window will still have the correct size but the content is to large.
(See attached images)
The test program seems to work fine on Windows 10, the window and the content are correctly scaled.
But it could also be related to the fact that the Windows 10 PC's were much older and slower than the Windows 11 PC's I tested.