QLineSeries 類

The QLineSeries class presents data in line graphs. 更多...

頭: #include <QLineSeries>
CMake: find_package(Qt6 REQUIRED COMPONENTS Graphs)
target_link_libraries(mytarget PRIVATE Qt6::Graphs)
qmake: QT += graphs
在 QML: LineSeries
繼承: QXYSeries

公共函數

Qt::PenCapStyle capStyle () const
QPointF dataPointCoordinatesAt (qreal x , qreal y )
void setCapStyle (Qt::PenCapStyle newCapStyle )
void setWidth (qreal newWidth )
qreal width () const

信號

void capStyleChanged ()
void widthChanged ()

詳細描述

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

成員函數文檔編製

[invokable] QPointF QLineSeries:: dataPointCoordinatesAt ( qreal x , qreal y )

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

注意: 此函數可以被援引,通過元對象係統和從 QML。見 Q_INVOKABLE .