QT apps on my setup have incredibly small fonts, tried this but could not make it work
export QT_AUTO_SCREEN_SCALE_FACTOR=1
QT apps on my setup have incredibly small fonts, tried this but could not make it work
export QT_AUTO_SCREEN_SCALE_FACTOR=1
I had this issue with QT apps like Strawberry, Texstudio, Octave, OBS-Studio etc.
What worked for me, for OBS-Studio, for example, was to edit the .desktop file located
at /usr/share/applications/com.obsproject.Studio.desktop.
I replaced the line Exec=obs
with:
Exec=env QT_SCALE_FACTOR=1.25 obs
This seemed to be good enough on my 4k monitor - 1.5 might be a little better. I did this for a number of QT applications and it worked. I didn’t want to do it globally since some of my QT apps were scaling correctly already. I did need to log out/in for the change to take place. Hope this helps!
Thanks
Why didn’t you try to use it as environment variable?
I thought he explained why he did not.
Oh sorry, thanks it worked in my case too
You can add export QT_SCALE_FACTOR=1.25
to your .bashrc file if you want the change to be global. I am using a 4k screen with display-scaling set to 100% and font-scaling set to 1.25.
Some QT apps, like KeePassXC respected the new font scaling, while the others I mentioned did not. So when I made the change globally, KeePassXC ended up getting scaled twice and was too big. So that is why I went for the .desktop files for particular QT apps. Hope that clears things up.
Where can I find this .bashrc file? I have the same problem with PureData (amongs others).
I tried adding Exec=env QT_SCALE_FACTOR=1.25
as environmental variable, but I have no permission to do so.
Is it this file: /var/lib/flatpak/app/info.puredata.Pd/current/active/export/share/applications/info.puredata.Pd.desktop?
Should I modify
Desktop Entry]
Name=Pure Data (Pd)
Exec=/usr/bin/flatpak run --branch=stable --arch=x86_64 --command=pd-gui --file-forwarding info.puredata.Pd @@ %F @@
Or this: /var/lib/flatpak/app/info.puredata.Pd/current/a82e259a8335ab1e51d2f0841a2625f265e7d54d6469bb7e49b119ebc034d8de/files/share/applications/info.puredata.Pd.desktop?
Answer:
“The menus and console font size can be changed using the Edit/Font menu dialog when the Pd window is focused”
Second page of the html-manual for Pd