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

[Regression 5.12.4 -> 5.12.5] DPI scaling is broken for WinRT

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: P1: Critical P1: Critical
    • None
    • 5.12.5, 5.12.6, 5.12.7, 5.12.8, 5.13.2, 5.14.2
    • GUI: Window management
    • None
    • Windows 10 (Version 1809) on a Dell XPS 15 with screen resolution 3840x2160 pixels at 200% scaling.
    • WinRT

      Attached you find a simple QML test program rendering QML Text elements.

      If you run it on a high DPI system with QT 5.12.4 kits msvc2017_64 and winrt_x64_msvc2017, you see that the screens are almost identical (screenshots attached). If you do the same with 5.12.5, the WinRT version shows that the dimensions of QML Text are too small and the window has a different pixel count with the same physical screen size (screenshots attached).
      Investigating the souce code, I have found the commit that causes this: 589d96b9 "winrt: Remove QWinrtScreen::pixelDensity so that the default of 1.0 is used".

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

            owolff Oliver Wolff
            adobner Armin Dobner
            Veli-Pekka Heinonen Veli-Pekka Heinonen
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes