[vlc-devel] Qt & fractionnal scaling

Jean-Baptiste Kempf jb at videolan.org
Mon Feb 19 19:39:14 CET 2018


Hello,

On Wed, 14 Feb 2018, at 16:29, Pierre Lamot wrote:
>   * Keep the current behavior
> 
>   * Patch Qt to provide a rounded  scale factor with preference for lower 
> value, assuming that users will prefer smaller icons rather than lage ones.

I would do this solution. This seems the less intrusive for now.

>   * Patch Qt to provide the real scale factor, this comes with some drawbacks 
> the most noticeable beeing that some native widget are poorly rendered (esp 
> checkbox and radio buttons)
> 
>   * Manually detect system scale factor and force Qt scale. This should be 
> done using plateform specific API since we need to modify QT environment and 
> QDesktop can't be access before initialising Qt. This provides the same result 
> and has the same drawbacks as previous solution.
> 
>   * Provide a global scaling option (to change QT_SCALE_FACTOR), modifying 
> QT_SCALE_FACTOR works well for icons and pixmap, but it tend to make fonts too 
> big or too small, we also need to ensure that (desktop scale factor x qt scale 
> factor >= 1) or qt rendering will be broken.
> 
>   * Provide an icon scale option and scale every icons and pixmap according to 
> this scale (before the DPI scaling). This provides flexibility, but it's a 
> tedious task with probably many corner cases. 
> 
>  * Allow users to disable HiDPI scaling. 
> 
> Thank you for your opinion and suggestion on this matter.
> 
> [1] https://bugreports.qt.io/browse/QTBUG-53022



-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list