Recently, I have upgraded my laptop to 4k screen (15.6") with a new system Debian 12. I can run SALOME with mesa_salome.
I have set up screen resolution with 3840x2160 and 200% amplified.
SALOME looks well with the fonts and windows, but the command icons don’t adapt to the configuration with 200% scaled, which looks very small.
After trial and errors, I have figured out a solution:
export QT_AUTO_SCREEN_SCALE_FACTOR=1 /usr/local/SALOME-9.11.0/mesa_salome
Because SALOME uses QT for GUIs,
QT_AUTO_SCREEN_SCALE_FACTOR=1 makes the system scale ineffective and uses QT’s scale.