Opened 8 years ago
Last modified 8 years ago
#4156 closed defect
OMEdit Visual glitches on high-res monitors — at Version 11
Reported by: | massimo ceraolo | Owned by: | Adeel Asghar |
---|---|---|---|
Priority: | normal | Milestone: | 2.0.0 |
Component: | OMEdit | Version: | |
Keywords: | windows | Cc: |
Description (last modified by )
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)
by , 8 years ago
by , 8 years ago
Attachment: | Second.png added |
---|
comment:1 by , 8 years ago
Description: | modified (diff) |
---|
follow-up: 3 comment:2 by , 8 years ago
comment:3 by , 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)
by , 8 years ago
comment:4 by , 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 , 8 years ago
Attachment: | Fourth.png added |
---|
by , 8 years ago
comment:5 by , 8 years ago
This is basically a duplicate of https://trac.openmodelica.org/OpenModelica/ticket/3414
follow-up: 7 comment:6 by , 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).
comment:7 by , 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:9 by , 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 , 8 years ago
Description: | modified (diff) |
---|
comment:11 by , 8 years ago
Description: | modified (diff) |
---|
I think you are referring to a wrong image. I can't find any icons of view in First.png.