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

Screen not detected when 2 monitors of same model are connected

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • P2: Important
    • None
    • 6.3.0 Beta2
    • GUI: Other, QPA: Windows
    • None
    • Dell XPS 15 9560, Windows 10 Pro Version 10.0.19044 Build 19044, MSVC 2019
    • 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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: