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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes