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

Windows: QWindowsScreenManager::handleScreenChanges treats screens with the same name as if they are the same physical device

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.2.4
    • Fix Version/s: 6.2.5
    • Component/s: QPA: Windows
    • Labels:
      None
    • Environment:
      Windows 10 21H2
    • Platform/s:
      Windows

      Description

      In the fix for QTBUG-74317, a change was made to use a "presentable" name for each display instead of the previously generated name (which happened to be unique for each display). This causes a problem because QWindowsScreenManager::handleScreenChanges() treats the items in newDataList as if they are the same physical display if they have the same name.

      The upshot is that if you have multiple identical displays connected to your machine, Qt will see those as only 1 display. This results in weird behavior, such as that I reported in QTBUG-101202.

      I have attached the relevant output from qtdiag.exe version 5.15.3 and 6.2.4.

      qtdiag_screens.txt

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              sorvig Morten Sørvig
              Reporter:
              aclight Adam Light
              Votes:
              6 Vote for this issue
              Watchers:
              10 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes