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

David Garcia david.garcia at aimsun.com
Wed Jan 2 23:09:10 CET 2019


Hi Elvis,

I did some extra tests and seems that is a bug.

If you start Qt Creator at 200% all is fine. Going back and forth between
100% to 200% works. If you start Qt Creator at 100% then it fails.

I have filled a bug report: https://bugreports.qt.io/browse/QTBUG-72823

Saludos,

David

-----Original Message-----
From: Elvis Stansvik <elvstone at gmail.com>
Sent: Wednesday, January 2, 2019 10:12 PM
To: David Garcia <david.garcia at aimsun.com>
Cc: interest at qt-project.org Interest <interest at qt-project.org>
Subject: Re: [Interest] How do I get a QMenu to react to text size changes
on Window's High DPI displays

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-r
> eact-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