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

QScreen: add unscaled screen geometry

XMLWordPrintable

      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
      

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

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

              Created:
              Updated:

                There is 1 open Gerrit change