Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qtlabsstylekit-example.qdoc
Go to the documentation of this file.
1// Copyright (C) 2026 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GFDL-1.3-no-invariants-only
3
4/*!
5 \example stylekit
6 \examplecategory {User Interface Components}
7 \title StyleKit Example
8 \brief Shows how to style \l {Qt Quick Controls} using \l {Qt Labs StyleKit}{StyleKit}.
9 \ingroup qtquickcontrols-examples
10
11 \image qtlabsstylekit-example.webp
12
13 This example shows how to style applications with \l {Qt Labs StyleKit}{StyleKit}.
14 It includes several styles that each demonstrate different aspects of styling:
15
16 \list
17 \li \b Plain - A minimal style with only the basics
18 \li \b Haze - An advanced style with multiple themes
19 \li \b Vitrum - A style targeting VR environments
20 \li \b CustomDelegates - A style demonstrating how to create overlays, underlays, and shader effects
21 \endlist
22
23 The example demonstrates, among other things, how to:
24
25 \list
26 \li Implement and switch between different styles.
27 \li Implement support for light and dark themes, as well as additional themes
28 such as high-contrast.
29 \li Use \l StyleVariation to provide alternative styling for
30 parts of the application.
31 \li Implement custom delegates to add overlay and underlay effects.
32 \li Apply shader-based visual effects to the controls.
33 \li Build custom controls using \l CustomControl and \l StyleReader.
34 \li Interact with a style at runtime, for example to change the
35 theme or adjust style properties like the background radius.
36 \endlist
37
38 \sa {Qt Labs StyleKit}, Style, Theme
39
40 \include examples-run.qdocinc
41*/