Testing High DPI support in Qt and I ran into an issue before I even got my test program done.
The test is trivial, just a mainwindow with menu bar and a toolbar with actions.
As I drag the program to and from the High DPI display the font size for menus change just as expected. But the size of the menu items don't update resulting in text that doesn't fit. This is just using the menus created by default in a mainwindow project in Creator.
I naively thought menus would update layouts and sizes automatically when the text or fonts changed.
QtMenuesIn4K.png
Is there a way to get the menu bar to update when the font size changes due to moving the window to and from a High DPI screen?
And as a follow up, is there any way to get the images in the actions both on the toolbar and menu items to change size depending on screen dpi?
I've looked at the High DPI section in the 5.5 docs but I just don't understand how to apply what it say to the layout of menu bars and images attached to QActions.
Could this possibly be related to me using windows style rather then a fully Qt controlled style for the application? Must test this with a non windows style when I get the chance.
Bookmarks