StyleKit Quick Controls Example

Shows how to style Qt Quick Controls using StyleKit.

StyleKit demo showing buttons, checkboxes, sliders, and settings

This example shows how to style applications with StyleKit. It includes several styles that each demonstrate different aspects of styling:

  • Plain - A minimal style with only the basics
  • Haze - An advanced style with multiple themes
  • Vitrum - A style targeting VR environments
  • Fusion - A classical desktop Fusion style

The example demonstrates, among other things, how to:

  • Implement and switch between different styles.
  • Implement support for light and dark themes, as well as additional themes such as high-contrast.
  • Use StyleVariation to provide alternative styling for parts of the application.
  • Build custom controls using CustomControl and StyleReader.
  • Interact with a style at runtime, for example to change the theme or adjust style properties like the background radius.

Running the Example

You can run the example from:

Example project @ code.qt.io

See also Qt Labs StyleKit, Style, and Theme.