Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
6.3.0
-
-
09e9f45933174d5b2ccb75e492d4ef4663e33fac(dev) 294429990344740905d5daea7d2c1273741e17b6(6.3)
Description
In Qt 6, width and height of the screen remains the same as it was when the screen was not rotated. Available geometry tries to follow it but ends up wrong too.
Rotating screen with xrandr, like:
xrandr --output <output> --rotate left
make qtdiag produce this:
Geometry: 1920x1080+0+0 Available: 1080x1048+0+32 Physical size: 609.778x342.563 mm Refresh: 60 Hz Power state: 0 Physical DPI: 79.9767,80.0788 Logical DPI: 96,96 Subpixel_None
When in normal mode it produces:
Geometry: 1920x1080+0+0 Available: 1920x1048+0+32 Physical size: 598x336 mm Refresh: 60 Hz Power state: 0 Physical DPI: 81.5518,81.6429 Logical DPI: 96,96 Subpixel_None
Geometry is the same 1920x1080+0+0 in both cases and available takes the right width value, but height value seems to be from the normal mode.
In Qt 5, this works properly, geometry follows screen rotation so that it gives 1080x1920+0+0 when rotated.