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

QPA: Windows: Window needs relayout after DPI changes

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: 5.14, 5.15
    • Fix Version/s: None
    • Component/s: QPA: Windows
    • Labels:
      None
    • Platform/s:
      Windows

      Description

      If you change DPI from 100% to 300% (for example) or vice versa, the widgets in a window will be in wrong position, but that's because the window is not repainted in time, they are in the correct position actually.

      It's easy to reproduce, just change the DPI several times, try 100% to 300% (or vice versa), not 100% to 125%

      I have read QPA's source code, it's not enough to call SetWindowPos only in WM_DPICHANGED. After changing the window size, a relayout is needed.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              kleint Friedemann Kleint
              Reporter:
              wangwenx190 赵 宇航
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:

                  Gerrit Reviews

                  There are no open Gerrit changes