Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-08-09 22:42:30

Tio
Member
Registered: 2021-09-26
Posts: 92

HiDPI sync between GTK and QT

We are working hard to make XFCE sync the themes between GTK and QT seamlessly and so far so great, but how about HiDPI? In XFCE the Window Scaling is where the magic happens. The 2x scaling can be detected with xconf and changed. But how to force the QT apps to also sync?

The only way I see it is to add:

export QT_AUTO_SCREEN_SCALE_FACTOR=2
export QT_ENABLE_HIGHDPI_SCALING=2
export QT_SCALE_FACTOR=2

To say .profile or .zshrc file in the user's home directory. Then log out. But isn't there a better way of handling this in XFCE?

EDIT: Font scaling via Appearance scales the fonts for QT and GTK but not the windows. So if you select  a 2x Window scaling then increase the fonts to 192 DPI you get a monster smile

Last edited by Tio (2023-08-09 22:49:29)

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.007 seconds, 8 queries executed - Memory usage: 510.02 KiB (Peak: 510.64 KiB) ]