during developing another qt application i came accross the following articel
https://vicrucann.github.io/tutorials/osg-qt-high-dpi/
Since i am working with a notebook and an external 4k screen, i am facing some display issues when it comes to the high DPI problematic.
I kwow that windows(10) does not fully support a high dpi scalling for all appplications. Some of them just look blurry, depending on what screen it is opened.
Also working with FC shows some minor display issues. I tried the code suggested in the articel. See the differents.
The Code change in src\Gui\Application.cpp line 1906
Code: Select all
#if QT_VERSION >= 0x050600
//Enable automatic scaling based on pixel density of display (added in Qt 5.6)
//QCoreApplication::setAttribute(Qt::AA_EnableHighDpiScaling);
SetProcessDPIAware(); // call before the main event loop
QApplication::setAttribute(Qt::AA_DisableHighDpiScaling);
#endif
PS:
A set of links to dpi topics
https://forum.freecadweb.org/viewtopic.php?t=41193
https://forum.freecadweb.org/viewtopic.php?t=34916
https://forum.freecadweb.org/viewtopic.php?f=34&t=48719