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

QML - Multi-screen issue - Qt sees incorrect screen resolution when the laptop lid is closed

    XMLWordPrintable

Details

    • Windows

    Description

      We have updated our application to Qt 6.6.1, and we are seeing an issue, which we reproduced with a sample application as well (LidCloseIssue1.zip).

      Reproduction steps:

      Monitor 1 = Laptop's monitor
      Monitor 2 = External monitor
      Screens Setup:
      Monitor 2 to the right of Monitor 1
      Monitor 1:
      1080p x 125%
      Monitor 2:
      3840 x 2160 x 300% - Main display

      1. Connect an external monitor to a laptop
      2. Set the external monitor (Monitor 2) as the main screen.
      3. Launch the sample app
      4. Switch the primary screen back to the laptop's monitor (Monitor 1) and immediately close the laptop lid before the process completes.
      5. The application will show that Qt sees different resolution than what Windows API reports
      Also : the text gets mis-aligned in the window : 

      When I move the window a bit (by drag and dropping the title bar), the text gets aligned correctly again : 

      Expected result :
      Qt should see the same resolution as what the Windows API reports

      Attachments

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

        Activity

          People

            eliashautala Elias Hautala
            csnt Csaba Szigeti
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes