[vlc-devel] Hi-DPI support for Linux and Windows
pierre at videolabs.io
Fri Sep 29 10:25:02 CEST 2017
This set of patch aims to provide support Hi-DPI in qt interface for
windows and linux.
The global idea is to switch from raster to vector graphics for icons
and graphics when possible to ensure that the render adapts to every
There is mainly 3 cases:
* QIcon: are scaled properly with the qsvgicon engine from Qt
* QPixmap: I introduce a function to render Svg to the requested size
scaled for current DPI
* Generated images and widgets: solution may vary.
Some graphics have been scaled according to font metrics when
associated to a text.
Patch 09 is necessary to support Qt 5.6, the behavior should be correct
starting from Qt 5.7
Note: Due to SVG content, patch "[PATCH 02/10] qt: provide graphics as
SVG" contains *very* long line (> 998) and may not apply correctly. I
can resend it if required.
More information about the vlc-devel