Skip to content

High DPI Support

Gary Wang edited this page Aug 5, 2023 · 3 revisions

Version applied to this wiki:

  • Platform: Windows
  • Version: Any
  • Suggested Version: >= 0.7.2

Before Pineapple Pictures 0.7.2, this application will use Qt's default High DPI scale rounding policy and you can only override its behavior by setting corresponding environment variables. By default, Qt 5 builds will always use an integer scale factor by rounding your system's High DPI scale factor, and Qt 6 builds will always use the scale factor exact same as your system uses.

Since Pineapple Pictures 0.7.2, there is a new configure option in the settings dialog which allows you to tweak this high DPI rounding policy. By default, we will now use the same factor as your system uses whatever it's an integer or a fractional number. You can select "Round (integer scaling)" to restore the old (Qt 5 builds' default) behavior, or select other high DPI rounding policy as well.

If you have a special use-case or for debugging purposes, these environment variables can still be used if needed. In that case, please read the Qt's documentation for details. Be aware, if you are using a Linux distribution, even if you are not specified such environment variables, your desktop environment might set up some related environment variables like QT_SCALE_FACTOR. If that's the case, the high DPI scaling behavior will be overridden by the corresponding environment variable.

Clone this wiki locally