TextStyle QML Type
Define el estilo de texto para la etiqueta de un control. Más...
| Import Statement: | import Qt.labs.StyleKit |
Propiedades
- alignment : Qt::Alignment
- bold : bool
- bottomPadding : real
- color : color
- italic : bool
- leftPadding : real
- padding : real
- pointSize : real
- rightPadding : real
- topPadding : real
Descripción detallada
TextStyle proporciona propiedades para controlar la apariencia de las etiquetas de texto dentro de un control, como color, alignment y padding, y ciertas propiedades relacionadas con la fuente como bold, italic y font size.
Está disponible como propiedad agrupada text en cada ControlStateStyle.
Nota: No se garantiza que los tipos de los módulos Qt.labs sigan siendo compatibles en futuras versiones.
Véase también DelegateStyle, ControlStyle, ControlStateStyle, y FallbackStyle Reference.
Documentación de propiedades
alignment : Qt::Alignment
La alineación del texto dentro de su área disponible.
bold : bool
Si el texto debe aparecer en negrita. El valor por defecto es false.
Véase también italic.
bottomPadding : real
El relleno inferior alrededor del texto. Si no se establece, vuelve a padding.
Véase también padding, topPadding, leftPadding, y rightPadding.
color : color
El color del texto.
italic : bool
Si el texto debe aparecer en cursiva. El valor por defecto es false.
Véase también bold.
leftPadding : real
El relleno izquierdo alrededor del texto. Si no se establece, vuelve a padding.
Véase también padding, rightPadding, topPadding, y bottomPadding.
padding : real
El relleno uniforme alrededor del texto. Establecer esto proporciona un valor por defecto para leftPadding, rightPadding, topPadding, y bottomPadding. Cada lado puede anularse individualmente.
Véase también leftPadding, rightPadding, topPadding, y bottomPadding.
pointSize : real
El tamaño en puntos de la fuente del texto.
rightPadding : real
El relleno derecho alrededor del texto. Si no se establece, vuelve a padding.
Véase también padding, leftPadding, topPadding, y bottomPadding.
topPadding : real
El relleno superior alrededor del texto. Si no se establece, vuelve a padding.
Véase también padding, bottomPadding, leftPadding, y rightPadding.
© 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.