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
qqstylekitstyleandthemebase.cpp
Go to the documentation of this file.
1// Copyright (C) 2025 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
5
7
8/*!
9 \qmltype AbstractStyle
10 \inqmlmodule Qt.labs.StyleKit
11 \inherits AbstractStylableControls
12 \brief Abstract base type with properties common to both \l Style and \l Theme.
13
14 AbstractStyle contains properties, such and fonts and palettes, that are
15 common to both a \l Style and a \l Theme.
16
17 \labs
18*/
19
24
25/*!
26 \qmlproperty StyleFont AbstractStyle::fonts
27
28 Grouped property for configuring per-control \l [QML]{font}{fonts}.
29 Fonts can be set for individual control types such as button,
30 textField, or label.
31
32 \qml
33 Style {
34 fonts {
35 system.pixelSize: 14
36 button.bold: true
37 textField.family: "Monospace"
38 }
39 }
40 \endqml
41*/
42QQStyleKitFont *QQStyleKitStyleAndThemeBase::fonts()
43{
44 return &m_fonts;
45}
46
47/*!
48 \qmlproperty StylePalette AbstractStyle::palettes
49
50 Grouped property for configuring per-control \l [QML]{Palette}{palettes}.
51 Palettes can be set system-wide or for individual control types.
52
53 \qml
54 light: Theme {
55 palettes {
56 system {
57 window: "gainsboro"
58 windowText: "black"
59 }
60 button.buttonText: "black"
61 textField.text: "#4e4e4e"
62 }
63 }
64 \endqml
65*/
67{
68 return &m_palettes;
69}
70
71QT_END_NAMESPACE
72
73#include "moc_qqstylekitstyleandthemebase_p.cpp"
QObject * parent
Definition qobject.h:74
\inmodule QtCore
Definition qobject.h:106
QQStyleKitPalette * palettes()
QQStyleKitFont * fonts()
Combined button and popup list for selecting options.