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