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

QScreen::geometry() returns the different value if primary screen is interchanged with secondry.

    XMLWordPrintable

Details

    • Windows

    Description

      in dual monitor system, if secondary screen is having scale factor 150% or higher than 100% and if secondary screen is made as primary screen QScreen::geometry() reports different value.

      Steps to reproduce:
      Run attached simple example

      1. monitor B (3840x2160) is the main display.
      Screen # 1 : geometry: QRect(0,0 2560x1440) , virtual geometry: QRect(0,0 5760x1440)
      Screen # 2 : geometry: QRect(3840,0 1920x1080) , virtual geometry: QRect(0,0 5760x1440)

      2. monitor B (3840x2160) is the secondary monitor:
      Screen # 1 : geometry: QRect(0,0 1920x1080) , virtual geometry: QRect(-3840,0 5760x2160)
      Screen # 2 : geometry: QRect(-3840,0 3840x2160) , virtual geometry: QRect(-3840,0 5760x2160)

      Attachments

        1. info.txt
          12 kB
        2. qtbug106686_1.zip
          1 kB
        3. qtbug106686.zip
          3 kB
        4. screengadget1.png
          screengadget1.png
          22 kB
        5. screengadget2.png
          screengadget2.png
          20 kB

        Issue Links

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

          Activity

            People

              vestbo Tor Arne Vestbø
              irfan.omair@digia.com Irfan Omair
              Votes:
              1 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes