I have a problem with QT applications (i.e. picard or masterpdfeditor) under GNOME: their interface looks tiny.
Instead, GTK application looks good.
我想要一个适用于所有应用程序的全局解决方案,而不是针对每个应用程序的修复程序。
我不确切知道问题的出处(是QT5问题还是GNOME问题?),但我想拥有一个更大的界面。我该怎么做?
I have already tried with a trick explained here but it works partially:
- if I launch the apps directly from the terminal, by appending the right variable e.g.
QT_SCALE_FACTOR=1.35 picard
, the trick works! - while if I launch them from the menu (gnome-shell), the exported variable is completely ignored.
有办法解决吗?
我有一台笔记本电脑与外部FullHD 24英寸显示器连接。 我在Arch Linux x86_64和Gnome 3.28 / 3.30上。
我在使Viber在HiDPI显示器上正常运行时遇到一些问题。默认情况下,Viber非常庞大,以至于我必须全屏才能使用它。
The solution was to disable automatic scaling (
QT_AUTO_SCREEN_SCALE_FACTOR=0
) and set a manual value (QT_SCALE_FACTOR=1.5
).I modified the
Exec=
line in/usr/share/applications/viber.desktop
to this:Now it looks perfect. Your mileage may vary based on the size of your display, you might want to set
QT_SCALE_FACTOR
to 2 or even more.我发现必须显式禁用自动缩放功能很奇怪,因为我在网上找到的大多数答案都说您必须启用它才能解决缩放问题。我猜它已成为较新版本的QT中的默认设置(?)
(我知道这并不能严格回答所提问题,但我认为这对某人有用。)
根据Archlinux Wiki:
So, you just need to edit
~/.profile
or~/.bash_profile
and add this line to export the correct environment variable like this :我已经尝试在Ubuntu 18.04下成功使用KeepassXC。
Don't use
QT_AUTO_SCREEN_SCALE_FACTOR
. Based on my experience, this seems to cause some weird default scaling.Use
QT_SCALE_FACTOR=1.5
instead.(or whatever size you want, supports fractional scaling.)
在配备4K显示器的Dell上完美运行。
您还可以将其添加到桌面启动器中:
资源: 它可以在具有4k显示屏的机器上使用。