Bug 509488 - Please implement QPlatformTheme::requestColorScheme(Qt::ColorScheme)
Summary: Please implement QPlatformTheme::requestColorScheme(Qt::ColorScheme)
Status: CONFIRMED
Alias: None
Product: plasma-integration
Classification: Plasma
Component: general (other bugs)
Version First Reported In: 6.4.5
Platform: Other Linux
: NOR wishlist
Target Milestone: ---
Assignee: Plasma Bugs List
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-09-14 13:33 UTC by Tobias Leupold
Modified: 2025-09-17 15:46 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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