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

QGuiApplication::devicePixelRatio() provides out-of-date value if displays change after app launch

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2: Important
    • Resolution: Done
    • Affects Version/s: 5.10.0 Alpha, 5.12.0 RC
    • Fix Version/s: None
    • Labels:
      None
    • Platform/s:
      macOS
    • Commits:
      ba304af284f4cbb579d35046c0cf4c1537af0fec

      Description

      QGuiApplication::devicePixelRatio() caches its value to improve performance. However, its cache is not refreshed when the system's displays change (if a HiDPI/Retina display is added or removed, or if a display's devicePixelRatio changes), so it can provide an out-of-date value.

        Attachments

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

          Activity

            People

            Assignee:
            qt.team.graphics.and.multimedia Qt Graphics Team
            Reporter:
            smokris Steve Mokris
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes