Référence API
QmlTheme
Expose les couleurs, la typographie et les paramètres d'animation Fluent de l'hôte à QML via l'objet en lecture seule fluentTheme. N'affecte que les éléments QML liés à ses propriétés ; les contrôles Qt Quick standard ne sont pas restylés automatiquement.
Aucun membre d'API correspondant.
fluent::qmlbridge::QmlTheme
Hérite de QObject
Méthodes
QColor surfaceAlt() constCouleur d'arrière-plan alternative pour les cartes et zones encastrées.
Propriétés
QColor background- Lecture
background()Notificationchanged() QColor surface- Lecture
surface()Notificationchanged() QColor surfaceAltCouleur d'arrière-plan alternative pour les cartes et zones encastrées.
LecturesurfaceAlt()Notificationchanged()QColor text- Lecture
text()Notificationchanged() QColor secondaryText- Lecture
secondaryText()Notificationchanged() QColor accent- Lecture
accent()Notificationchanged() QColor onAccent- Lecture
onAccent()Notificationchanged() QColor border- Lecture
border()Notificationchanged() bool dark- Lecture
isDark()Notificationchanged() bool animationsEnabled- Lecture
areAnimationsEnabled()Notificationchanged() QString fontFamily- Lecture
fontFamily()Notificationchanged() int fontPixelSize- Lecture
fontPixelSize()Notificationchanged() int cornerRadius- Lecture
cornerRadius()Notificationchanged() int transitionDuration- Lecture
transitionDuration()Notificationchanged()
Signaux
void changed()Émis lorsque tout paramètre de couleur, de police ou d'animation du thème hôte change.
Documentation de la classe de base Qt : QObject