Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-103558

[REG: 5->6]: QScreen gives odd values if screen is rotated

    XMLWordPrintable

Details

    • Linux/X11
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            liaqi Liang Qi
            poikelin Joni Poikelin
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes