Solved KDE plasma 6 global scale with qt5 applications

I replaced my hd monitor with a 4k (2160p) monitor, which requires me to use 150% scale to make fonts legible. KDE plasma 6's display setting 'global scale' worked well with plasma desktop, KDE applications, and firefox and thunderbird (gtk). However, qt5 applications did not follow this global scale and were rendering at 100%, with fonts too small to be readable. Affected applications include libreoffice, virtualbox and vlc.
Following the examples found elsewhere, I could get all applications - KDE 6, qt5 and gtk - to use 150% by setting the following environment variables. However, I had to set KDE's global scale to 100% to avoid scaling twice.
Code:
GDK_DPI_SCALE=1.5
QT_SCALE_FACTOR=1.5
Is there a better way to get the scaling work without these workarounds? I have plasma6-plasma-integration-qt5 installed, but it does not seem to address the scaling.
 
I missed to mention in the previous post that this behavior is under plasma-x11; I have not managed to successfully use plasma-wayland yet with the correct screen resolution on my monitors.
After some hardware tweaks, it appears that KDE's display scaling behavior may be dependent on the graphics card/driver; the above behavior is observed with my intel on-board graphics ('i915kms' driver). With an nvidia card ('nvidia-driver' package), KDE's global scale seems to apply to both qt5 and gtk applications, though font size is a bit different between them.
 
After a recent update to plasma/KDE components, global scaling started working fine on qt5 and gtk applications. I am not sure which specific package was responsible. I have also reset my KDE configuration files in my home folder which might have contributed, as I previously had config files retained over multiple plasma/KDE package updates.

The only thing that is not scaling at the moment is the mouse cursor, for which I had to manually change the cursor size.
 
Back
Top