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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • None
    • 5.10.0 Alpha, 5.12.0 RC
    • None
    • macOS
    • ba304af284f4cbb579d35046c0cf4c1537af0fec

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes