PathCurve QML Type
Define un punto de una curva Catmull-Rom. Más...
| Import Statement: | import QtQuick |
Propiedades
Descripción detallada
PathCurve proporciona una manera fácil de especificar una curva que pasa directamente a través de un conjunto de puntos. Normalmente se utilizan múltiples PathCurves en una serie, como demuestra el siguiente ejemplo:
import QtQuick Canvas { width: 400; height: 200 contextType: "2d" Path { id: myPath startX: 0; startY: 100 PathCurve { x: 75; y: 75 } PathCurve { x: 200; y: 150 } PathCurve { x: 325; y: 25 } PathCurve { x: 400; y: 100 } } onPaint: { context.strokeStyle = Qt.rgba(.4,.6,.8); context.path = myPath; context.stroke(); } }
Este ejemplo produce la siguiente trayectoria (con el punto inicial y los puntos de la PathCurve resaltados en rojo):

Véase también Path, PathLine, PathQuad, PathCubic, PathArc, y PathSvg.
Documentación de propiedades
Define el punto final de la curva en relación con su inicio.
Si se especifica tanto una posición final relativa como absoluta para un mismo eje, se utilizará la posición relativa.
Las posiciones relativas y absolutas pueden mezclarse, por ejemplo es válido establecer una x relativa y una y absoluta.
Define el punto final de la curva.
© 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.