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

QScreen class geometry() method returns incorrect coordinates after changing display orientation

    XMLWordPrintable

Details

    • Bug
    • Resolution: Incomplete
    • P2: Important
    • None
    • 6.4.1
    • QPA: Windows
    • Operating System: Windows 11 Pro SV2 22621.730
    • Windows

    Description

      Environment: 

      CPU / GPU Ryzen 3900X / RX480
      Motherboard Chipset  B550 AORUS PRO
      SBIOS  American Megatrends F15c, 5/11/2022
      Operating System  Windows 11 Pro SV2 22621.730

      Steps to reproduce:

      1. Connect two non-identical displays to the computer.
      2. Open the Qt app calling print(screen->geometry()) on every display.
      3. Open Windows Settings > System > Display
      4. Change the arrangement of second display (e.g. swap the location of display 1 and 2)
      5. Set the display arrangement back to the original.
      6. Observer the displays' coordinates printed

      Observed result:

      One of displays' coordinates are no longer correct, The screen height and width are still correct, but the screen x and y are incorrect. 

      Expected result:

      The coordinates should be changed properly. 

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            dave.wang Dave Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes