本页内容

SplineSeries QML Type

SplineSeries 通过样条图展示数据。更多内容...

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

XYSeries

属性

信号

详细说明

该图显示了平滑的样条曲线段,这些曲线段会经过图中定义的所有点。

通过数据点绘制平滑曲线的样条图

属性文档

capStyle : Qt::PenCapStyle

控制线的端点样式。可设置为以下值之一:Qt.FlatCap 、Qt.SquareCap 或Qt.RoundCap 。默认情况下,端点样式为 Qt.SquareCap。

另请参见 Qt::PenCapStyle 。

optimized : bool [since 6.11]

设置样条曲线的控制点拟合方式。启用后将采用 Catmull-Rom 算法。默认情况下,optimized 设置为 false。

该属性自 Qt 6.11 起引入。

width : real

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

Signal 文档

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.