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

Screen not detected when 2 monitors of same model are connected

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Duplicate
    • Affects Version/s: 6.3.0 Beta2
    • Fix Version/s: None
    • Component/s: GUI: Other, QPA: Windows
    • Labels:
      None
    • Environment:
      Dell XPS 15 9560, Windows 10 Pro Version 10.0.19044 Build 19044, MSVC 2019
    • Platform/s:
      Windows

      Description

      I have three screens with resolution 1920x1080. Two of them are Asus VS278 both attached to the laptop via hdmi.

      When running this code

      #include <QGuiApplication>
      #include <QScreen>
      int main(int argc, char *argv[]) {
          QGuiApplication app(argc, argv);
          QList<QScreen *> screens = app.screens();
          for (QScreen *screen : screens)
              qDebug() << screen->name() << screen->geometry() << screen->devicePixelRatio();
          return 0;
      }
      

      I get this output

      "VS278" QRect(3840,0 1920x1080) 1
      "\\\\.
      DISPLAY1" QRect(1920,0 1920x1080) 1

      and as you can see one monitor is missing.

      It's also strange that instead of the screen name as szDevice, I get the monitorFriendlyDeviceName (I find this a huge and annoying change).

      The result is correct when using Qt 6.2.3

      "\\\\.
      DISPLAY2" QRect(0,0 1920x1080) 1
      "\\\\.
      DISPLAY1" QRect(1920,0 1920x1080) 1
      "\\\\.
      DISPLAY3" QRect(3840,0 1920x1080) 1

       

      If I use a screen with a different model everything works fine.I guess the problem is that the friendly name is not unique

       

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              qt.team.quick.subscriptions Qt Quick and Widgets Team
              Reporter:
              lorenzolightsgdwarf Lorenzo Lucignano
              Votes:
              3 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes