View previous topic :: View next topic |
Author |
Message |
McLink Apprentice
Joined: 02 Feb 2008 Posts: 183 Location: /dev/chair
|
Posted: Sat Sep 14, 2024 8:52 am Post subject: [SOLVED] Qt6/qt6ct font weirdness |
|
|
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 |
|
|
Weezer n00b
Joined: 19 Apr 2024 Posts: 22
|
Posted: Sat Sep 14, 2024 9:33 am Post subject: |
|
|
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 |
|
|
The Main Man Veteran
Joined: 27 Nov 2014 Posts: 1171 Location: /run/user/1000
|
Posted: Sat Sep 14, 2024 11:16 am Post subject: |
|
|
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 |
|
|
McLink Apprentice
Joined: 02 Feb 2008 Posts: 183 Location: /dev/chair
|
Posted: Sat Sep 14, 2024 11:58 am Post subject: |
|
|
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 |
|
|
|
|
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
|
|