I have been using KDE Plasma for a while now, with the global scale set the default to 100%. Recently, probably following a reboot after an update, I noticed that all KDE programs (including the start menu, taskbar, switcher, settings and the decoration on windows etc.) as well as all Qt based programs suddenly got scaled up to what looks like 125%. Other programs, like Firefox, Electron apps remain unaffected.
Increasing the global scale to 125% and beyond seems to affect all programs correctly, it is only 100% that behaves strange.
I cannot add screenshot nor a link to a screenshot yet. Anyway qmmp is scaled and has strange white area (compared to a qmmp-skin in gwenview where it is 100%) .
After some investigation I found solution. Qmmp 2.1.2 is based on Qt 6.5 and important environment variable is QT_FONT_DPI. It works quite well but some values causes visual glitches.
$ QT_FONT_DPI=96 qmmp
starts Qmmp unscaled.
$ QT_FONT_DPI=120 qmmp
starts Qmmp scaled to 125% which causes glitches. Values 144 or 192 (i.e. 150% and 200%) works well.
I needed to run Qmmp from application launcher so I wrote a simple script:
#!/bin/sh
QT_FONT_DPI=118 qmmp "$1"
This script starts Qmmp scaled, without visual glitches and with argument so I can click *.flac in Double Commander and start music playing in Qmmp.