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

Incorrect screen geometry when "HighDpiScaleFactorRoundingPolicy::Round" is active.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.5.2
    • GUI: High-DPI
    • None
    • Windows

    Description

      {}Incorrect screen geometry is calculated when DPI scale is rounded to nearest integer factor.

       

      Issue:

      When OS GUI scale factor is set to 125% and Qt's rounding policy is set to "HighDpiScaleFactorRoundingPolicy::Round", the logical screen geometry is still scaled by 1/1.25 before the scale factor is rounded to 1. On a 1920x1080 display, this results in a logical screen geometry of 1536x864 with a scale factor of 1 (see attached "image1.png").

       

      Reproducible:

      1) Ensure OS GUI scale is set to 125%

      2) Create QMainWindow

      3) Set window state to "Qt::WindowFullScreen"

       

      Additional:

      Issue also manifests within maximized windows where tooltips extend beyond the logical screen geometry (see attached "image2.png").

       

      Expected:

      Behaviour should be commensurate with an OS GUI scale of 1.

       

      Impact:

      As Qt does not yield acceptable results when rendering with a fractional scale factor, rounding behaviour is an essential component of modern Qt widget applications.

      Attachments

        1. Image1.png
          Image1.png
          88 kB
        2. Image2.png
          Image2.png
          59 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            sorvig Morten Sørvig
            taliadon Lee Westlake
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes