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

[REG] QQuickItem::ItemDevicePixelRatioHasChanged is triggered with a wrong value

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P1: Critical
    • 6.6.0
    • dev
    • GUI: High-DPI
    • None
    • Windows
    • 1314592f4 (dev)

    Description

      Found this while working on QTBUG-113040.

      QQuickItem::itemChange() with QQuickItem::ItemDevicePixelRatioHasChanged change is triggered with a wrong value.
      Not reproduced with Qt 6.5.0, so it's regression came with some recent change on Dev.

      To reproduce the problem you need environment with at least 2 displays with different scale factors. e.g. one with 100% and another with 125%.

      Run attached sample project dpi_issue.zip on a display with 100% scale and move the window
      on a display with 125% scale and vise versa. Check the output - you'll see that wrong (previous) DPI value is printed.

      The problem exists at least on Windows, but probably it's relevant for other platforms. like macOS.

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              studiosus Vladimir Belyavsky
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes