LineSeries QML 类型

Presents data in line graphs. 更多...

import 语句: import QtGraphs
在 C++: QLineSeries
继承:

XYSeries

特性

信号

详细描述

A line graph is used to show information as a series of data points connected by straight lines.

LineSeries uses mostly the same API as ScatterSeries so see ScatterSeries documentation for further usage examples.

另请参阅 ScatterSeries .

特性文档编制

capStyle : Qt::PenCapStyle

控制线的帽盖样式。设为之一对于 Qt.FlatCap , Qt.SquareCap or Qt.RoundCap . By default the cap style is Qt.SquareCap. Invalid values are automatically set to the default value.

另请参阅 Qt::PenCapStyle .

pointDelegate : 组件

Marks the point with the given QML component.

pointDelegate: Image {
    source: "images/happy_box.png"
}
					

width : real

The width of the line. By default, the width is 2.0. Widths lower than 0 are invalid and are automatically set to 0.

信号文档编制

capStyleChanged ()

This signal is emitted when the line series cap style changes.

注意: 相应处理程序是 onCapStyleChanged .

widthChanged ()

This signal is emitted when the line series width changes.

注意: 相应处理程序是 onWidthChanged .

内容

  1. 特性

  2. 信号

  3. 详细描述