Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Trouble with Qt and QT_AUTO_SCREEN_SCALE_FACTOR
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
Markand
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2008
Posts: 76

PostPosted: Sat Nov 04, 2017 4:45 pm    Post subject: Trouble with Qt and QT_AUTO_SCREEN_SCALE_FACTOR Reply with quote

Hello,

I have a hidpi display (2560 x 1440) on my lenovo x1 carbon, to scale Qt and Gtk application one must set the following environment variables:

Code:
QT_AUTO_SCREEN_SCALE_FACTOR=1
GDK_SCALE=2


(As explained in many articles like this one)

For Gtk3 application it works well, for Qt it looks like fonts are rendered incorrectly as you can see on this picture:

http://markand.fr/qt.png

Note : on other distributions it works fine, I think I should miss a use flag or something like that.

The output of emerge --info

Do you have any ideas?
Back to top
View user's profile Send private message
Markand
Tux's lil' helper
Tux's lil' helper


Joined: 11 Jun 2008
Posts: 76

PostPosted: Tue Nov 07, 2017 4:21 pm    Post subject: Reply with quote

Adjusting Xft.dpi to 192 in .Xdefaults fixes the problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum