AbstractStyle QML Type
Abstract base type with properties common to both Style and Theme. More...
| Import Statement: | import Qt.labs.StyleKit |
| Inherits: | |
| Inherited By: | |
| Status: | Technology preview |
This type is in technology preview and is subject to change.
Properties
Detailed Description
AbstractStyle contains properties, such and fonts and palettes, that are common to both a Style and a Theme.
Note: Types in Qt.labs modules are not guaranteed to remain compatible in future versions.
Property Documentation
fonts : StyleFont
Grouped property for configuring per-control fonts. Fonts can be set for individual control types such as button, textField, or label.
Style {
fonts {
system.pixelSize: 14
button.bold: true
textField.family: "Monospace"
}
}palettes : StylePalette
Grouped property for configuring per-control palettes. Palettes can be set system-wide or for individual control types.
light: Theme {
palettes {
system {
window: "gainsboro"
windowText: "black"
}
button.buttonText: "black"
textField.text: "#4e4e4e"
}
}© 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.