AbstractStyle QML Type
Tipo base abstracto con propiedades comunes tanto a Style como a Theme. Más información...
| Import Statement: | import Qt.labs.StyleKit |
| Inherits: | |
| Inherited By: | |
| Status: | Technology preview |
Este tipo se encuentra en fase de vista previa tecnológica y está sujeto a cambios.
Propiedades
Descripción detallada
AbstractStyle contiene propiedades, como fuentes y paletas, que son comunes tanto a un Style como a un Theme.
Nota: No se garantiza que los tipos de los módulos de Qt.labs sigan siendo compatibles en futuras versiones.
Documentación de las propiedades
fonts : StyleFont
Propiedad agrupada para configurar el « fonts » por control. Se pueden establecer fuentes para tipos de control concretos, como botones, campos de texto o etiquetas.
Style {
fonts {
system.pixelSize: 14
button.bold: true
textField.family: "Monospace"
}
}palettes : StylePalette
Propiedad agrupada para configurar la « palettes » por control. Las paletas se pueden configurar para todo el sistema o para tipos de control concretos.
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.