[Interest] How do I get a QMenu to react to text size changes on Window's High DPI displays

Elvis Stansvik elvstone at gmail.com
Wed Jan 2 22:12:00 CET 2019


Den ons 2 jan. 2019 kl 17:16 skrev David Garcia <david.garcia at aimsun.com>:
>
>
>
> Hi,
>
>
>
> I’m having the same issue as reported in this stack overflow question: https://stackoverflow.com/questions/31559703/how-do-i-get-a-qmenu-to-react-to-text-size-changes-on-high-dpi-diplays
>
>
>
> In Windows, when changing the display scale from 100% to 200%, the QMenuBar items are updated with a new font size but the layout is not. Qt Creator does it right so seems that is not a Qt bug. Any idea?

Just chiming in to say I've noticed this as well and always thought it
was a Qt bug. It was on my personal TODO to look up whether it was
reported and if not, report it. Interesting to hear that Qt Creator
behaves correctly (I hadn't tried it).

I believe (can't quite remember) I've seen similar issues with scroll
bars not adapting fully to runtime changes in the Windows screen
scaling options.

Elvis

>
>
>
> Thanks,
>
>
>
> David
>
>
>
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> https://lists.qt-project.org/listinfo/interest



More information about the Interest mailing list