Bug 509488

Summary: Please implement QPlatformTheme::requestColorScheme(Qt::ColorScheme)
Product: [Plasma] plasma-integration Reporter: Tobias Leupold <tl>
Component: generalAssignee: Plasma Bugs List <plasma-bugs>
Status: CONFIRMED ---    
Severity: wishlist CC: kde, nate
Priority: NOR    
Version First Reported In: 6.4.5   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description Tobias Leupold 2025-09-14 13:33:20 UTC
Hi all!

Since Qt 6.8, a Qt program can switch from a light to a dark color scheme or override the system default via QStyleHints::setColorScheme(Qt::ColorScheme). The change is requested via QPlatformTheme::requestColorScheme(Qt::ColorScheme). We ship our own platform theme, but as of now, we don't implement this.

Consequently, when a Qt program calls QStyleHints::setColorScheme, nothing happens, as just the base implementation is called, which does nothing.

We can change color schemes for our apps via KDE infrastructure run-time for quite some time now, but pure Qt programs can't. It would be nice if this was possible!

Thanks for considering adding this!

Cheers, Tobias