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

Qt uses wrong source for logical DPI on X

    XMLWordPrintable

Details

    Description

      QXcbScreen::logicalDpi() uses:

      • QT_FONT_DPI if set
      • Xft.dpi if set
      • screen.size() / screen.physicalSize()

      This will not produce correct results on X as X fakes the physicalSize by default.

      This causes fonts to get rendered at 96dpi, even if the primary monitor has 192dpi, for instance.

      As a result, it is never enough to just enable HiDPI scaling to get usable results on X11, you always have to specify the DPI manually.

      Attachments

        Issue Links

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

          Activity

            People

              sorvig Morten Sørvig
              vogtinator Fabian Vogt
              Votes:
              5 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes