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

Windows: Fix High DPI issues

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • Not Evaluated
    • 5.4.0
    • None
    • QPA: Windows
    • None
    • Windows 7, 8.1

    Description

      Pending changes:

      • Find out UI scale factor of Window: https://codereview.qt-project.org/#/c/87716/ for Windows 8.1 . No idea for Win7 yet, might have to check metrics before and after setting DPI awareness (see version 1 of that patch). Is this actually need; is there a point returning a DPR for a screen in case Windows does the scaling?

      Things to do:

      • Some machines fail to set DPI awareness: SetProcessDpiAwareness failed: "COM error 0x80070005 (Unknown error 0x0ffffffff80070005) (also observed in autotests when calling it repeatedly).

      Various oddities:

      • With a scale factor of 100%, setting DPI awareness to 0 does not have any effect. It defaults to 2.

      Done changes:

      Attachments

        1. 0004-Add-icon-to-trivial-wizard.patch
          6 kB
          Friedemann Kleint
        2. debuggingproxystyle140806.cpp.txt
          5 kB
          Friedemann Kleint
        3. qtbug38993.zip
          10 kB
          Friedemann Kleint
        4. winstylediag.diff
          9 kB
          Friedemann Kleint

        Issue Links

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

          Activity

            People

              kleint Friedemann Kleint
              kleint Friedemann Kleint
              Votes:
              7 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: