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

QPA: Windows: Window needs relayout after DPI changes

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P4: Low
    • None
    • 5.14, 5.15
    • QPA: Windows
    • None
    • 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

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

              Dates

                Created:
                Updated:

                Gerrit Reviews

                  There are no open Gerrit changes