En esta página

AbstractStyle QML Type

Tipo base abstracto con propiedades comunes a Style y Theme. Más...

Import Statement: import Qt.labs.StyleKit
Inherits:

AbstractStylableControls

Inherited By:

Style and Theme

Propiedades

Descripción detallada

AbstractStyle contiene propiedades, como fuentes y paletas, que son comunes tanto a Style como a Theme.

Nota: No se garantiza que los tipos de los módulos Qt.labs sigan siendo compatibles en futuras versiones.

Documentación de propiedades

fonts : StyleFont

Propiedad agrupada para configurar por control fonts. Las fuentes pueden configurarse para tipos de control individuales como button, textField o label.

Style {
    fonts {
        system.pixelSize: 14
        button.bold: true
        textField.family: "Monospace"
    }
}

palettes : StylePalette

Propiedad agrupada para configurar por control palettes. Las paletas pueden configurarse para todo el sistema o para tipos de control individuales.

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.