Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Desktop Environments
  • Search

[SOLVED] Qt6/qt6ct font weirdness

Problems with GUI applications? Questions about X, KDE, Gnome, Fluxbox, etc.? Come on in. NOTE: For multimedia, go up one forum
Post Reply
Advanced search
4 posts • Page 1 of 1
Author
Message
McLink
Apprentice
Apprentice
User avatar
Posts: 184
Joined: Sat Feb 02, 2008 9:24 am
Location: /dev/chair
Contact:
Contact McLink
Website

[SOLVED] Qt6/qt6ct font weirdness

  • Quote

Post by McLink » Sat Sep 14, 2024 8:52 am

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?
Last edited by McLink on Sat Sep 14, 2024 12:17 pm, edited 3 times in total.
Top
Weezer
n00b
n00b
Posts: 32
Joined: Fri Apr 19, 2024 9:43 am

  • Quote

Post by Weezer » Sat Sep 14, 2024 9:33 am

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.
Top
The Main Man
Veteran
Veteran
Posts: 1173
Joined: Thu Nov 27, 2014 11:25 pm
Location: /run/user/1000

  • Quote

Post by The Main Man » Sat Sep 14, 2024 11:16 am

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

Code: Select all

export QT_STYLE_OVERRIDE=kvantum
Top
McLink
Apprentice
Apprentice
User avatar
Posts: 184
Joined: Sat Feb 02, 2008 9:24 am
Location: /dev/chair
Contact:
Contact McLink
Website

  • Quote

Post by McLink » Sat Sep 14, 2024 11:58 am

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.
Top
Post Reply

4 posts • Page 1 of 1

Return to “Desktop Environments”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic