Opened 8 years ago

Last modified 8 years ago

#4156 closed defect

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

Reported by: massimo ceraolo Owned by: Adeel Asghar
Priority: normal Milestone: 2.0.0
Component: OMEdit Version:
Keywords: windows Cc:

Description (last modified by massimo 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).
In case it is deemed useful, I could add other items in the list in the near future.

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

Change History (15)

by massimo ceraolo, 8 years ago

Attachment: First.png added

by massimo ceraolo, 8 years ago

Attachment: Second.png added

comment:1 by massimo ceraolo, 8 years ago

Description: modified (diff)

comment:2 by Adeel Asghar, 8 years ago

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.

in reply to:  2 comment:3 by massimo ceraolo, 8 years ago

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 massimo ceraolo (previous) (diff)

by massimo ceraolo, 8 years ago

Attachment: Third.png added

comment:4 by massimo ceraolo, 8 years ago

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).

by massimo ceraolo, 8 years ago

Attachment: Fourth.png added

by massimo ceraolo, 8 years ago

Attachment: Fifth.png added

comment:5 by Henning Kiel, 8 years ago

comment:6 by Martin Sjölund, 8 years ago

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).

in reply to:  6 comment:7 by massimo ceraolo, 8 years ago

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 by Adeel Asghar, 8 years ago

cdab4c8/OMEdit fixes point 3.

comment:9 by Adeel Asghar, 8 years ago

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 by massimo ceraolo, 8 years ago

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