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

Screen.Width/Height is sometimes taken from the false screen in multi screen setup.

    XMLWordPrintable

Details

    • Windows

    Description

      Qt user reported about screen dimension issue if Qt app is launched from different screen in a multi screen setup. The app could get the dimensions of the screen where the mouse is located. Their screen resolutions are: Primary laptop 1920x1080 and Second monitor 5120x1440. Other setups primary screen resolution is 1920x1080 and secondary monitors screen resolutions are 3840x2160, and 2560x1440.

      Qt support tested following:

      Three screens
      1.1440 x 900 100% scale
      2.1680 x 1050 100% scale(Screen is a 4k laptop monitor)
      3.1920 x 1080 100% scale

      Primary screen is number 2.
      Deploying app via Qt Creator from 1. and 3. screen causes mouse cursor to move to screen 2 and it gives correct resolution.
      This works correctly.

      Screen 1. is made the primary screen with the windows re-login.

      App deploy from screen 2 works correctly but the mouse does not move anymore. Correct resolution given 1440 x 900.
      App deploy from screen 3 does not move mouse and app appears odd(partly appears on 2.screen left under corner) and gives resolution 1920 x 900 which is wrong.

      Screen 3. is primary. No win re-login.
      App deployd from screens 1. and 2. does not move the mouse but give correct resolution: 1920 x 1080

       

      Test project attached.

      Attachments

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

        Activity

          People

            owolff Oliver Wolff
            tero.pelkonen Tero Pelkonen
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes