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

Window and Widgets are scaled inproperly when per-monitor-dpi awareness is set and application is moved between 1080p/4k monitors

    XMLWordPrintable

Details

    Description

      When having per-monitor-dpi awareness set on (-platform windows:dpiawareness=2), moving the application window between 1080p and 4k monitors scale the window strangely. Part of the problem may be if the widget has max width set, it does not get scaled properly.

      Steps to reproduce:

      • Run "Config Dialog" Qt Example with "QGuiApplication::setAttribute(Qt::AA_EnableHighDpiScaling);" added.
      • Have the application pop up on 1080 screen initially
      • Move the application to 4k screen
      • Observe list widget not scaling properly because it has max width set
      • Move application back to 1080 screen
      • EXPECTED: All scaling works fine, application ends up looking the same as it was initially
      • ACTUAL: Application's window size has doubled, scaling in 4k screen seems somewhat broken

      Attachments

        1. qtbug55449_moved_back.png
          39 kB
          Jussi Witick
        2. qtbug55449_moved_to_4k.png
          35 kB
          Jussi Witick
        3. qtbug55449_original.png
          35 kB
          Jussi Witick
        4. qtbug-55449-qtdiag2.txt
          4 kB
          Jussi Witick
        5. qtdiag.txt
          4 kB
          Jussi Witick

        Issue Links

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

          Activity

            People

              mmutz Marc Mutz
              jussi_witick Jussi Witick
              Votes:
              2 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes