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

Wrong window and/or content size after screen scaling change

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • 6.5.1, 6.6.0
    • 6.3.2
    • None
    • Windows
    • e86fcae22 (dev), 777c97787 (6.5)

    Description

      Problem: 

      Increasing screen scaling results in the window and/or the content being too large.
      Decreasing screen scaling results in a correct window size, but the content is too small.

      To reproduce:
      Start the test program (It should start out on the primary screen).

      • The window has the FramelessWindowHint and a green rectangle in each corner.
        Click on the "Change screen" button, the window will move to the other screen.
        Open the windows settings and change the screen scaling from 100% to 125% for the Laptop screen.
        The resulting window is too large, including the content.

      If the Laptop screen has a 125% scaling when starting the test program, and changing the scaling from 125% to 100%, the resulting window will be the correct size but the content is too small.
      Or if increasing the scaling to 150% or 175% the window will still have the correct size but the content is to large.
      (See attached images)

      Note:
      The test program seems to work fine on Windows 10, the window and the content are correctly scaled.
      But it could also be related to the fact that the Windows 10 PC's were much older and slower than the Windows 11 PC's I tested.

      Attachments

        1. 100to125scaling.png
          2.77 MB
          Bastian Wolfgruber
        2. 125to150scaling.png
          3.85 MB
          Bastian Wolfgruber
        3. 150to100scaling.png
          3.85 MB
          Bastian Wolfgruber
        4. QtScreenTest.zip
          2 kB
          Bastian Wolfgruber
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            timothee.keller Timothée Keller
            basti_4tiitoo Bastian Wolfgruber
            Votes:
            2 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes