From Qt doc:f3nix wrote: I just wonder if the HiRes capable is being overridden somewhere in the code.
My understanding is that we have to take care of the scaling ourselves.Applications mostly work with device independent pixels. Notable exceptions are OpenGL and code that works with raster graphics.
Simple test I have run:
QT_SCALE_FACTOR=2 ./FreeCAD
and changing the code to make Viewport width and height to be twice as big gives good results.
I do wonder if setting QT_SCALE_FACTOR=0.5 would "fix" this Viewport issue (icons and everything else should be too small).
Have a nice trip!
Cheers,
Mateusz[/quote]
Hi Mateusz,blacey wrote: I will try to set the scale factor external to the app to see if that helps as well but again, that might be up to a week away.
Sorry for the protracted response but I was away and just getting back to this now. I have created a 3 minute Youtube video if FreeCAD Qt4 side-by-side with FreeCAD Qt5 (unscaled and scaled) to demonstrate the problem that will hopefully highlight the root cause (NOTE: You will need to watch the video in full screen because I recorded on a 5120x2880 HiDPI display). Perhaps @wmayer will find this interesting and have some insight as well. Would really like to find a way to make the Qt5 builds usable enough to default the macOS builds to Qt5 for better test coverage.
Thanks,
Bruce
Build details:
Qt4
Code: Select all
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10011 (Git)
Build type: Release
Branch: (detached from 15ab763)
Hash: 15ab763652c6bcbf3036c29d443ae0f3c2872bca
Python version: 2.7.13
Qt version: 4.8.7
Coin version: 3.1.3
OCC version: 7.0.0
Code: Select all
OS: Mac OS X
Word size of OS: 64-bit
Word size of FreeCAD: 64-bit
Version: 0.17.10016 (Git)
Build type: Release
Branch: (detached from 8ea650c)
Hash: 8ea650cbc115f85fde7bb779a3177be0e56b5cef
Python version: 2.7.13
Qt version: 5.6.2
Coin version: 3.1.3
OCC version: 7.0.0