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

QApplication::screens() does not return all screens when the device is connected to more than one displays.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • 6.5.2
    • Widgets: Main Window
    • None
    • Windows

    Description

      To reproduce this issue, the device must have two screens connected (not all displays reproduce this issue) and be running Windows (reproduce on both 10 and 11).

       

      Steps to reproduce:

      1. Connect both displays to the device
      2. Extend the displays
      3. Run the code below
      4. It will only show the secondary screen

       

      We were able to reproduce the issue on these displays:

      • LG 22mp55, 1920x1080, 48cm x 27cm, 100%, 59.940hz
      • LG 25'' Ultrawide, 1920x1080, 25'', 100%, 60.000hz
      • LG E2241, 1920x1080, 48cm x 27cm, 100% , 60.000hz
      • LG 23mb35, 1920x1080, 51cm x 29cm, 100%, 60.000hz
      • LG 23ea53, 1920x1080, 51cmx29cm, 100%, 60.000hz

       

      The minimum code to reproduce:

       

      int main(int argc, char** argv) {
        QApplication a(argc, argv);
        const auto screens = QApplication::screens();
      
        qDebug() << "*** Qt screens ***";
        for (int ii = 0; ii < screens.count(); ++ii) {
          qDebug() << ii + 1 << screens[ii]->geometry();
        }
        qDebug() << "*** End ***";
      
        return 0;
      }

       

       

      Attachments

        For Gerrit Dashboard: QTBUG-116969
        # Subject Branch Project Status CR V

        Activity

          People

            owolff Oliver Wolff
            i.barbosa Ícaro Barbosa
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There is 1 open Gerrit change