Does setting
    QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);

help?  This should be more or less the first line in your code.


Marc


On Sat, 31 Oct 2020 at 12:31, Ramakanth Kesireddy <rama.k...@gmail.com>
wrote:

> Hi,
>
> After porting the Qt 4.8 application to Qt 5.6.3 on embedded Linux(Yocto)
> with fontconfig, the font sizes appear larger on target.
>
> The Qt 4.8 application font size setting with 14pt default font appears
> larger in Qt 5.6.3 with fontconfig and needed fonts added in default
> fontconfig directory /usr/share/fonts.
> The dpi of the device is 141.
>
> Do I need to reduce the font size pt or set any environment variable scale
> factor so that text appears normal?
>
> Any suggestions are much appreciated.
>
> Thanks and Regards,
> Ramakanth
> _______________________________________________
> Interest mailing list
> Interest@qt-project.org
> https://lists.qt-project.org/listinfo/interest
>
_______________________________________________
Interest mailing list
Interest@qt-project.org
https://lists.qt-project.org/listinfo/interest

Reply via email to