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

QApplication::font().pointSizeF() not device independent

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • P3: Somewhat important
    • None
    • 5.15
    • GUI: Font handling
    • None
    • Windows

    Description

      When trying to get the point size of the default application font using QApplication::font().pointSizeF(), the value change depending of the primary monitor Device Pixel Ratio:

      • With my internal 15" Laptop with 4k screen (DPR ratio = 2.5) I get a pointSizeF value of 4.8
      • With my 27" External screen configured as primary monitor (DPR ratio = 1.5 ) I get a pointSizeF value of 8

      According to QT doc, I would expect to always get the same value as pointSizeF() is supposed to be device independent. 

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jbp Jean-Baptiste Peter
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes