Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Qt6/qt6ct font weirdness
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
McLink
Apprentice
Apprentice


Joined: 02 Feb 2008
Posts: 183
Location: /dev/chair

PostPosted: Sat Sep 14, 2024 8:52 am    Post subject: [SOLVED] Qt6/qt6ct font weirdness Reply with quote

Fixed by manually editing ~/.config/qt6ct/qt6ct.conf and entering valid font names in the appropriate fields there.

For some reason, Qt6 does not seem to want to use sensible font settings. Under Qt5, I can use x11-misc/qt5ct to set the font just fine, however, when I try the same with gui-apps/qt6ct, the font options do not show a font family, and trying to change the value causes a segfault. The message "QFont::fromString: Invalid description ',12,-1,5,400,0,0,0,0,0,0,0,0,0,0,1'" repeats a few times when I open qt6ct. The segfault seems to originate in QFontDialogPrivate::updateFamilies().

An example of the differences between qt5ct and qt6ct: [removed]
Clicking either of the "..." buttons in qt6ct is what causes it crash.

emerge --info: [removed]
eselect fontconfig list: [removed]

Any ideas?
_________________
Mc'abit wrote:
Islam isn't the problem, religion is.


Last edited by McLink on Sat Sep 14, 2024 12:17 pm; edited 3 times in total
Back to top
View user's profile Send private message
Weezer
n00b
n00b


Joined: 19 Apr 2024
Posts: 19

PostPosted: Sat Sep 14, 2024 9:33 am    Post subject: Reply with quote

I was unable to view your imjur file, however, I would ask if you set:

QT_QPA_PLATFORMTHEME="qt6ct" in your /etc/environment file?

Just something to check. I've no font issues to speak of otherwise.
Back to top
View user's profile Send private message
The Main Man
Veteran
Veteran


Joined: 27 Nov 2014
Posts: 1171
Location: /run/user/1000

PostPosted: Sat Sep 14, 2024 11:16 am    Post subject: Reply with quote

I am using kvantum, no issues there, but make sure you set this variable, otherwise it's a pain.

Code:
export QT_STYLE_OVERRIDE=kvantum
Back to top
View user's profile Send private message
McLink
Apprentice
Apprentice


Joined: 02 Feb 2008
Posts: 183
Location: /dev/chair

PostPosted: Sat Sep 14, 2024 11:58 am    Post subject: Reply with quote

I've added QT_QPA_PLATFORMTHEME="qt6ct" (it was still set to qt5ct). No difference.
If I set QT_STYLE_OVERRIDE to anything, qt6ct warns me to remove it.

In any case, I think this is more a case of Qt6 somehow messing up when finding out the available fonts than anything to do with the theme.

EDIT: It was actually just an empty value that had somehow sneaked into ~/.config/qt6ct. Fixed by manually editing ~/.config/qt6ct/qt6ct.conf and entering valid font names in the appropriate fields there.
_________________
Mc'abit wrote:
Islam isn't the problem, religion is.
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