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

    • Bug
    • Resolution: Done
    • P2: Important
    • None
    • 5.10.0 Alpha, 5.12.0 RC
    • None
    • macOS
    • 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

            qt.team.graphics.and.multimedia Qt Graphics Team
            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