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

QScreen: add unscaled screen geometry

    XMLWordPrintable

Details

    Description

      All QScreen functions return screen geometries with scaled values, which is good for most cases. However, sometimes there is a need to communicate with external applications with device pixel sizes.

      It is not possible to calculate because there will be rounding errors. For example, resolution of 3200x1800 will cause problems with 1.5 and 3 scale factors because:

      3200x1800 / 1.5 = 2133x1200
      2133x1200 * 1.5 = 3199.5x1800
      

      and:

      3200x1800 / 3 = 1066x600
      1066x600 * 3 = 3198x1800
      

      Attachments

        Issue Links

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

          Activity

            People

              Unassigned Unassigned
              poikelin Joni Poikelin
              Votes:
              2 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes