Referencia de API
QmlTheme
Expone los colores, la tipografía y los ajustes de movimiento Fluent del anfitrión a QML como el objeto de solo lectura fluentTheme. Solo afecta a los elementos QML que se enlazan a sus propiedades; los controles estándar de Qt Quick no cambian de estilo automáticamente.
No hay miembros de la API que coincidan.
fluent::qmlbridge::QmlTheme
Hereda de QObject
Métodos
QColor surfaceAlt() constColor de fondo alternativo para tarjetas y áreas insertadas.
Propiedades
QColor background- Lectura
background()Notificaciónchanged() QColor surface- Lectura
surface()Notificaciónchanged() QColor surfaceAltColor de fondo alternativo para tarjetas y áreas insertadas.
LecturasurfaceAlt()Notificaciónchanged()QColor text- Lectura
text()Notificaciónchanged() QColor secondaryText- Lectura
secondaryText()Notificaciónchanged() QColor accent- Lectura
accent()Notificaciónchanged() QColor onAccent- Lectura
onAccent()Notificaciónchanged() QColor border- Lectura
border()Notificaciónchanged() bool dark- Lectura
isDark()Notificaciónchanged() bool animationsEnabled- Lectura
areAnimationsEnabled()Notificaciónchanged() QString fontFamily- Lectura
fontFamily()Notificaciónchanged() int fontPixelSize- Lectura
fontPixelSize()Notificaciónchanged() int cornerRadius- Lectura
cornerRadius()Notificaciónchanged() int transitionDuration- Lectura
transitionDuration()Notificaciónchanged()
Señales
void changed()Se emite cuando cambia cualquier ajuste de color, fuente o movimiento del tema anfitrión.
Documentación de la clase base de Qt: QObject