CoatiSoftware / Sourcetrail

Sourcetrail - free and open-source interactive source explorer
https://www.sourcetrail.com/
GNU General Public License v3.0
14.83k stars 1.39k forks source link

Wrong highDPI scaling on Fedora 29 with Gnome and system wide UI scale of 200% #657

Open egraether opened 5 years ago

egraether commented 5 years ago

standard UI: menu and status bar scale differently than custom UI

capture d ecran de 2018-12-20 11-12-51

egraether commented 5 years ago

workaround from here:

export QT_SCALE_FACTOR=1
export QT_AUTO_SCREEN_SCALE_FACTOR=0
export QT_SCREEN_SCALE_FACTORS=2

With auto scaling and scale factor set to system in Sourcetrail

haoyun commented 5 years ago

It may be related to https://bugreports.qt.io/browse/QTBUG-64738.

Check if your Xft.dpi is an integer via xrdb -query | grep dpi.

remicmacs commented 4 years ago

I have a scaling problem too but the Xft.dpi was not the solution for me.

However by tweaking with QT_SCREEN_SCALE_FACTORS (thanks to @egraether workaround), I was able to get the correct scaling.

export QT_SCREEN_SCALE_FACTORS=0.5

I already had that kind of scaling problems with other Qt application (namely Calibre and GNS3). IIRC it was during the transition phase of these applications from one version of Qt to another.

Let me know if y'all need more information. I'm not so knowledgeable in Qt and GUIs but I'm highly interested in Sourcetrail and I'd be glad if I can be of some help.