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

Make QT_DEVICE_PIXEL_RATIO an alias to QT_SCREEN_SCALE_FACTORS for backwards compatibility

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Won't Do
    • P3: Somewhat important
    • None
    • 5.6.0
    • GUI: Painting
    • None
    • Arch Linux x86_64 GNU/Linux

    Description

      QT_DEVICE_PIXEL_RATIO is actively used by downstream. KDE uses it in it's screen scaling configuration on many systems.

      In 5.6, QT_DEVICE_PIXEL_RATIO behaviour was changed and it no longer produces the expected results.

      Setting QT_SCREEN_SCALE_FACTORS=2 produces the same visual result as setting QT_DEVICE_PIXEL_RATIO=2 did before, and as the user would expect from QT_DEVICE_PIXEL_RATIO=2 (or from using KDE configuration).

      Perhaps it would make sense to offer a grace period (e.g. 5.6 + 5.7) and print a deprecation warning if QT_DEVICE_PIXEL_RATIO is detected, but actually use that value for QT_SCREEN_SCALE_FACTORS if that was not set explicitly?

      Attachments

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

        Activity

          People

            sorvig Morten Sørvig
            chalker Сковорода Никита
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes