Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-29461

Only integer scaling factors are supported without environment variable

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Not Evaluated
    • None
    • Qt Creator 11.0.0
    • All Other Issues
    • None
    • Arch Linux
      KDE Plasma
    • d1deeb2c0 (11.0)

    Description

      When applying high DPI scaling, only integer scaling factors are supported unless explicitly overriding with environment variables. For example, on KDE Plasma when applying a global scale of 125% all menus and text are 2x normal size, much larger than the rest of the system.

      Looking at the Qt Creator code, it appears to default the HighDpiScaleFactorRoundingPolicy value to Round and switch it to Floor if high DPI isn't enabled. In order to have proper scaling, the QT_SCALE_FACTOR_ROUNDING_POLICY=PassThrough environment variable must explicitly be set.

      I would propose that PassThrough would be used by default if high DPI is enabled to ensure consistency across the system.

      Attachments

        Issue Links

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

          Activity

            People

              portale Alessandro Portale
              akb825 Aaron Barany
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes