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

Make Dpi scaling controllable as options setting

    XMLWordPrintable

    Details

      Description

      This sugestion results from a discussion with Thomas Hartmann, who recently got a 27" 4k screen, which causes Windows to scale by default to 150%.

      Because of varying support of Dpi-scaling of an OS where Qt Creator runs on, there are different approaches to DPI scaling, per OS:

      • MacOS: (forced) Qt Creator does not interfere and leaves it to Qt to use the system scale factor as factor for Qt Creator. -> Work mostly well!
      • Windows: (opt-out) If no SCALING envoronment vaiables are set, Qt Creator instructs Qt to detect the scale factor and use it for Qt Creator -> Works best if the OS scaling is in 100% steps.
      • Linux: (opt-in) Qt Creator leaves it to the user to set environment variables -> Has too many distro/windowingsystem specific pitfalls to be considered reliable.

      Now, although the current behaviour still seems sane, there are cases where Windows or Linux users might want to have their opt-out/in option in a bit more comfortable way than an environment variable. Thomas' suggestion was to have a dpi scaling setting in the Options dialog. On the next run Qt Creator would read that setting (before instantiating QApplication!) and influence DPI scaling, accordingly.

        Attachments

          Issue Links

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

            Activity

              People

              Assignee:
              thohartm Thomas Hartmann
              Reporter:
              portale Alessandro Portale
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes