In questa pagina

AbstractStyle QML Type

Tipo di base astratto con proprietà comuni sia a Style che a Theme. Altro...

Import Statement: import Qt.labs.StyleKit
Inherits:

StylableControls

Inherited By:

Style and Theme

Status: Technology preview

Questo tipo è in anteprima tecnologica ed è soggetto a modifiche.

Proprietà

Descrizione dettagliata

AbstractStyle contiene proprietà, quali font e tavolozze, comuni sia a un Style che a un Theme.

Nota: non è garantita la compatibilità dei tipi nei moduli Qt.labs nelle versioni future.

Documentazione delle proprietà

fonts : StyleFont

Proprietà raggruppate per la configurazione " fonts" per singolo controllo. È possibile impostare i caratteri per singoli tipi di controllo, come pulsanti, campi di testo o etichette.

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

palettes : StylePalette

Proprietà raggruppate per la configurazione dell'palettes e per singolo controllo. Le palette possono essere impostate a livello di sistema o per singoli tipi di controllo.

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.