在本页

SplineSeries QML Type

SplineSeries 以样条曲线图的形式显示数据。更多

Import Statement: import QtGraphs
In C++: QSplineSeries
Inherits:

XYSeries

属性

信号

详细说明

图形显示平滑的样条线段,通过图形中定义的所有点进行移动。

属性文档

capStyle : Qt::PenCapStyle

控制线条的上限样式。设置为Qt.FlatCapQt.SquareCapQt.RoundCap 之一。默认情况下,线帽样式为 Qt.SquareCap。

另请参阅 Qt::PenCapStyle

optimized : bool [since 6.11]

设置花键的控制点拟合。启用后将使用 Catmull-Rom 实现。默认情况下,优化设置为 false。

此属性在 Qt 6.11 中引入。

width : real

行的宽度。默认情况下,宽度为 2.0。

信号文档

capStyleChanged()

当花键系列上限样式发生变化时会发出该信号。

注: 相应的处理程序是onCapStyleChanged

[since 6.11] optimizedChanged()

该信号在设置样条曲线系列的优化属性时发出。

注: 相应的处理程序是onOptimizedChanged

此信号在 Qt 6.11 中引入。

widthChanged()

当样条曲线系列宽度发生变化时发出此信号。

注: 相应的处理程序是onWidthChanged

© 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.