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
6
8
9/*!
10 \qmltype AbstractStyle
11 \inqmlmodule Qt.labs.StyleKit
12 \inherits AbstractStylableControls
13 \brief Abstract base type with properties common to both \l Style and \l Theme.
14
15 AbstractStyle contains properties, such and fonts and palettes, that are
16 common to both a \l Style and a \l Theme.
17
18 \labs
19*/
20
25
26/*!
27 \qmlproperty StyleFont AbstractStyle::fonts
28
29 Grouped property for configuring per-control \l [QML]{font}{fonts}.
30 Fonts can be set for individual control types such as button,
31 textField, or label.
32
33 \qml
34 Style {
35 fonts {
36 system.pixelSize: 14
37 button.bold: true
38 textField.family: "Monospace"
39 }
40 }
41 \endqml
42*/
43QQStyleKitFont *QQStyleKitStyleAndThemeBase::fonts()
44{
45 return &m_fonts;
46}
47
48/*!
49 \qmlproperty StylePalette AbstractStyle::palettes
50
51 Grouped property for configuring per-control \l [QML]{Palette}{palettes}.
52 Palettes can be set system-wide or for individual control types.
53
54 \qml
55 light: Theme {
56 palettes {
57 system {
58 window: "gainsboro"
59 windowText: "black"
60 }
61 button.buttonText: "black"
62 textField.text: "#4e4e4e"
63 }
64 }
65 \endqml
66*/
68{
69 return &m_palettes;
70}
71
72QT_END_NAMESPACE
73
74#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.