GraphTransition QML Type
Contenedor en el que se definen todas las animaciones. Más...
| Import Statement: | import QtGraphs |
- Lista de todos los miembros, incluidos los heredados
- GraphTransition es parte de Qt Graphs QML Types for 2D.
Propiedades
- TransitionType : enumeration
- animations : list<object>
Descripción detallada
GraphTransition es un contenedor para animaciones dentro de Graphs2D. Defina esta clase dentro de un tipo de gráfico para habilitar cambios animados para XYSeries dentro de gráficos 2D. Para definir animaciones individuales, añádalas dentro de GraphTransition. Las animaciones individuales dentro del mismo GraphTransition se animan en paralelo. Si el gráfico encuentra un GraphTransition durante una llamada a una función compatible que añade o sustituye un punto, los valores se interpolan según las animaciones añadidas.
Este ejemplo muestra cómo definir un GraphTransition dentro de un gráfico.
import QtGraphs
GraphsView {
LineSeries {
GraphTransition {
GraphPointAnimation {}
}
}
SplineSeries {
GraphTransition {
SplineControlAnimation {}
}
}
}Nota: GraphTransition requiere que se defina directamente dentro del gráfico que necesita ser animado. Actualmente sólo es compatible con XYSeries.
Véase también GraphPointAnimation y SplineControlAnimation.
Documentación de propiedades
TransitionType : enumeration
Tipo de transición.
| Constante | Descripción |
|---|---|
None | No hay transición. |
PointAdded | Se ha añadido un punto. |
PointReplaced | Se ha sustituido un punto. |
PointRemoved | Se ha eliminado un punto. |
animations : list<object>
Un contenedor para todas las animaciones en el GraphTransition. Actualmente sólo soporta animaciones para ser añadidas y borradas. Por defecto, la lista está vacía.
© 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.