Opened 8 years ago

Last modified 8 years ago

#4156 closed defect

OMEdit Visual glitches on high-res monitors — at Version 11

Reported by: ceraolo Owned by: adeas31
Priority: normal Milestone: 2.0.0
Component: OMEdit Version:
Keywords: windows Cc:

Description (last modified by ceraolo)

Today's 4k monitors in practice require fonts to be scaled-up. factors between 1.5x - 2.0x on DPI are typical.
Generally OMEdit behaves well in such environments, however:
1) the plus sign near variables in the Variables Browser is too large (First.png)
2) OMEdit about window is too small in comparison with font sizes (Second.png)
3) tools on the main toolbox are correctly scaled-up, while icons of views (icon, diagram, text, documentation) are too small (Third.png).
4) the documentation browser shows a very small font (looks like not being scaled-up, as if its size is set in pixels instead of points)

The screenshots I add refers to 1.75x (i.e. 168 virtual DPI) in windows.

Change History (16)

Changed 8 years ago by ceraolo

Changed 8 years ago by ceraolo

comment:1 Changed 8 years ago by ceraolo

  • Description modified (diff)

comment:2 follow-up: Changed 8 years ago by adeas31

3) tools on the main toolbox are correctly scaled-up, while icons of views (icon, diagram, text, documentation) are too small (First.png).

I think you are referring to a wrong image. I can't find any icons of view in First.png.

comment:3 in reply to: ↑ 2 Changed 8 years ago by ceraolo

I think you are referring to a wrong image. I can't find any icons of view in First.png.

Right. I forgot to switch to modelling perspective.
To update it I need my work's PC: I'll do this tomorrow...
DONE (Third.png)

Last edited 8 years ago by ceraolo (previous) (diff)

Changed 8 years ago by ceraolo

comment:4 Changed 8 years ago by ceraolo

Today I made a further check, with the same OMEdit version (1.11.0-dev267), but without zooming fonts.
I had an additional small issue: the package branch markers were first nice ">" symbols (Fourth.png). but, as far as I opened a branch, they were converted into squares, containing the "+" sign, with a too large size (Fifth.png).

Changed 8 years ago by ceraolo

Changed 8 years ago by ceraolo

comment:5 Changed 8 years ago by hkiel

comment:6 follow-up: Changed 8 years ago by sjoelund.se

  • Keywords windows added

Most of these issues seem Windows-specific. The about box is rendered in a sort of weird way on Linux too though. (Note: Need Ubuntu 16.10+ for Hi-DPI in Qt applications)

Does the documentation browser show a small font by default on Windows as well? (I usually do ctrl+mousewheel up for Linux in that Window).

comment:7 in reply to: ↑ 6 Changed 8 years ago by ceraolo

Most of these issues seem Windows-specific.

Indeed if the fonts' and windows' sizes are defined in pixels, these issues should be cross-platform.
I've some experience in making DPI-aware software with Qt, and I found it easy to make DPI-aware programs using simple rules:

  • defining fonts in points instead of pixels (or, in case a special effect is wanted as a fraction of window's actual size )
  • resizing windows on proportion to actual DPI's (and, for which maximum and minimum sizes are defined resizing them as well)
  • adjusting the maximum size of those toolButtons for which maximum and minimum sizes are defined in proportion to actual DPI's

(not to mention the need to always use layouts, that is standard Qt GUI programming).

If none of this is done, I expect on other OS's problems similar to those we see in Windows.

BTW, what I did does not make usage e of any recent feature of Qt. I retrieved DPI's using

QScreen *screen=QGuiApplication::primaryScreen();
int myDPI=screen->logicalDotsPerInch();

Does the documentation browser show a small font by default on Windows as well? (I usually do ctrl+mousewheel up for Linux in that Window).

Yes, it is small, It looks like its size is defined in OMEdit software in pixels (that does not scale when DPI's are changed) and not in points.

Final consideration. There's a lot of software around that is not DPI-aware yet. The very box in which I'm writing now contains fonts that appear very tiny on my 4k screen!

comment:8 Changed 8 years ago by adeas31

cdab4c8/OMEdit fixes point 3.

comment:9 Changed 8 years ago by adeas31

Point 2. The about window uses a png as background which is ofcourse fixed size and doesn't scale up. I think we should get rid of it and just show the information in a standard window.

comment:10 Changed 8 years ago by ceraolo

  • Description modified (diff)

comment:11 Changed 8 years ago by ceraolo

  • Description modified (diff)
Note: See TracTickets for help on using tickets.