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 : Component

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 .

方法文檔編製

dataPointCoordinatesAt ( real x , real y )

返迴 x and y rendercoordinates converted into data point coordinates.