On this page

StyleKit Widgets Example

Shows how to style Qt Widgets using StyleKit.

StyleKit Widgets Example showing buttons, sliders, and a settings panel

This example shows how to style a Qt Widgets application with StyleKit. It demonstrates how to apply QML-defined styles to standard Qt Widgets controls using QStyleKitStyle, and how to switch between styles and themes at runtime.

The example includes three styles:

  • Classic - A gradient-based style with multiple themes including light, dark, high-contrast, and green.
  • Flat - A flat, Material Design-inspired style with light and dark themes.
  • Neon - A cyberpunk-inspired dark style with neon accent colors.

The example demonstrates how to:

Running the Example

You can run the example from:

Example project @ code.qt.io

See also Qt Labs StyleKit and StyleKit Quick Controls Example.

© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.