Enable the built-in Qt support for high-dpi displays by default
sergm opened this issue · comments
To improve UI look on high-dpi displays, the Qt library provides a number of ways to enable the necessary scaling the application layouts and the raster graphics (since Qt version 5.4). There are several environment variables, e.g. QT_ENABLE_HIGHDPI_SCALING
(since Qt 5.14) or QT_AUTO_SCREEN_SCALE_FACTOR
(since Qt 5.6) that should be configured before launching the mt32emu-qt
application on a high-dpi display. However, this may likely become an issue on Windows systems only, because display scaling is never a problem on macOS, yet many GNU/BSD systems per-configure these environment variables for the user.
Besides, the Qt library provides a way to enable the high-dpi display support programmatically, which is clearly a more reasonable default behaviour for mt32emu-qt
application. Even if the high-dpi display support enabled programmatically by default, this leaves the user a possibility to disable it via the same environment variables, if desired.