Issues with hdpi display under Windows 10

Post here for help on using FreeCAD's graphical user interface (GUI).
Forum rules
and Helpful information
IMPORTANT: Please click here and read this first, before asking for help

Also, be nice to others! Read the FreeCAD code of conduct!
Post Reply
daviddem
Posts: 2
Joined: Sat Jan 04, 2020 3:55 am

Issues with hdpi display under Windows 10

Post by daviddem »

Hello,

Pardon me if this has been addressed, I searched and did not find a proper solution. After installing FreeCAD for the first time ever on my Windows 10 laptop with hdpi display (3480 x 2160), the interface is messed up (splash screen, menus etc... nothing is in place - see below screenshot of one of the manipulator windows for example).

Image

After searching and unsuccessfully playing with the compatibility options, I found that creating the environment variable QT_AUTO_SCREEN_SCALE_FACTOR and setting its value to 1 or 2 solves the problem. See below:

Image

However, setting this environment variable messed up other programs that use Qt, such as Free Download Manager for example (and no, this window is not resizable):

Image

So my question is: is there a better way to get FreeCAD to display properly on a hdpi monitor under WIndows 10?

OS: Windows 10
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.18.4 (GitTag)
Build type: Release
Branch: releases/FreeCAD-0-18
Hash: 980bf9060e28555fecd9e3462f68ca74007b70f8
Python version: 3.6.6
Qt version: 5.6.2
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: English/UnitedKingdom (en_GB)
chrisb
Veteran
Posts: 54177
Joined: Tue Mar 17, 2015 9:14 am

Re: Issues with hdpi display under Windows 10

Post by chrisb »

First try: use FreeCAD 0.19, it has a new Qt library which hopefully fixes this. If this doesn't help: can you start FreeCAD from a script? Then you can set the environment variable individually for FreeCAD.
A Sketcher Lecture with in-depth information is available in English, auf Deutsch, en français, en español.
UR_
Veteran
Posts: 1355
Joined: Tue Jan 03, 2017 8:42 pm

Re: Issues with hdpi display under Windows 10

Post by UR_ »

No problems here.

win 10 display settings 150%
display 3840 x 2160
conda build
env var QT_AUTO_SCREEN_SCALE_FACTOR not set


OS: Windows 10 (10.0)
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.19.19124 (Git)
Build type: Release
Branch: master
Hash: d5a4996d2514dc2737d57aab084bc5743e040d20
Python version: 3.7.6
Qt version: 5.12.5
Coin version: 4.0.0a
OCC version: 7.3.0
Locale: German/Germany (de_DE)


Screenshot 002.png
Screenshot 002.png (508.33 KiB) Viewed 560 times
Screenshot 003.png
Screenshot 003.png (247.69 KiB) Viewed 560 times
daviddem
Posts: 2
Joined: Sat Jan 04, 2020 3:55 am

Re: Issues with hdpi display under Windows 10

Post by daviddem »

chrisb wrote: Sat Jan 04, 2020 8:07 am First try: use FreeCAD 0.19, it has a new Qt library which hopefully fixes this. If this doesn't help: can you start FreeCAD from a script? Then you can set the environment variable individually for FreeCAD.
Indeed FreeCAD_0.19.19127_x64_LP_12.1.2_PY3QT5-WinVS2015 does not have the issue I described (and my other programs are also looking ok while FreeCAD 0.19 is running). Guess I should have tried that first before spending hours tinkering :oops: .

Thanks for making me aware of the development builds, I hadn't paid attention when I downloaded FreeCAD 0.18.
ntsarb
Posts: 1
Joined: Sat Feb 04, 2023 10:36 pm
Contact:

Re: Issues with hdpi display under Windows 10

Post by ntsarb »

It's strange if the issue was resolved in 0.19 and reappeared in 0.20.2 that I'm using. I had to force the application to scale via Windows 11 application properties, which resulted in blurred text, which I prefer from tiny text (in the settings and dialog boxes).

Is this a known issue or is there a configuration setting for the application to adapt to HiDPI display (4K 27 inches, 150% scaling in Windows 11) ?
Post Reply