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

Qt uses wrong source for logical DPI on X

XMLWordPrintable

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes