StyleKit - A common QML API for styling Controls and Widgets

Richard Moe Gustavsen

Playlists: 'kde2026' videos starting here / audio

StyleKit (formerly known under the working title "Unified Style") is a new QML module shipped with Qt 6.11 under the "Qt.labs.StyleKit" namespace.

StyleKit is a declarative styling system for Qt Quick Controls _and_ Widgets, built on top of Qt Quick Templates. It lets you define a complete visual style for all your controls from a single Style document, including support for themes, state-based styling, and transitions. StyleKit handles the underlying template implementation automatically, letting you focus purely on visual aspects such as colors, dimensions, borders, and shadows.

A key strength of StyleKit is its hierarchical property system: set a property once on a base type like abstractButton, and it automatically applies to all button-like controls. Override it where needed for specific controls or states. Changes to your style are instantly reflected across all controls, ensuring consistency while still allowing fine-grained customization.

This talk will introduce the module, demonstrate how it works, and outline future plans.

https://creativecommons.org/licenses/by-sa/4.0/

Download

Embed

Share:

Tags