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

Only integer scaling factors are supported without environment variable

XMLWordPrintable

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

      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.

        For Gerrit Dashboard: QTCREATORBUG-29461
        # Subject Branch Project Status CR V

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes