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

WinRT: hidpi scaling issues.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.14
    • 5.6.0, 5.7.0
    • GUI: High-DPI
    • None
    • Windows 10
    • WinRT

    Description

      The hidpi changes introduced in https://codereview.qt-project.org/#/c/142093/ works great if your display has a 1.0 or 2.0 pixel density. However for some displays this does not work as expected.

      For example if the logical dpi for the display is 240, the calculated pixel density is rounded up from 2.5 to 3.0. What this means is that the UI components are over scaled and look unnatural for the size of the screen i.e. 0.5x larger than they should be.

      If you remove the qRound function then the UI is scaled correctly for the display.

      Attachments

        Activity

          People

            owolff Oliver Wolff
            rupert_d Rupert Daniel
            Votes:
            4 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: