QHXYModelMapper

The QHXYModelMapper class is a horizontal model mapper for line, spline, and scatter series. More

Inheritance diagram of PySide6.QtCharts.QHXYModelMapper

Synopsis

Functions

Detailed Description

Model mappers enable using a data model derived from the QAbstractItemModel class as a data source for a chart. A horizontal model mapper is used to create a connection between a line, spline, or scatter series and the data model that has X and Y rows for the coordinates and holds the data points for the XYSeries as columns. A TableModel is a natural choice for the model.

Both model and series properties can be used to manipulate the data. The model mapper keeps the series and the data model in sync.

See also

QVXYModelMapper QXYSeries Model Data Example

class PySide6.QtCharts.QHXYModelMapper([parent=None])
Parameters

parentPySide6.QtCore.QObject

Constructs a mapper object that is a child of parent.

PySide6.QtCharts.QHXYModelMapper.columnCount()
Return type

int

See also

setColumnCount()

PySide6.QtCharts.QHXYModelMapper.columnCountChanged()
PySide6.QtCharts.QHXYModelMapper.firstColumn()
Return type

int

See also

setFirstColumn()

PySide6.QtCharts.QHXYModelMapper.firstColumnChanged()
PySide6.QtCharts.QHXYModelMapper.modelReplaced()
PySide6.QtCharts.QHXYModelMapper.seriesReplaced()
PySide6.QtCharts.QHXYModelMapper.setColumnCount(columnCount)
Parameters

columnCount – int

See also

columnCount()

PySide6.QtCharts.QHXYModelMapper.setFirstColumn(firstColumn)
Parameters

firstColumn – int

See also

firstColumn()

PySide6.QtCharts.QHXYModelMapper.setXRow(xRow)
Parameters

xRow – int

See also

xRow()

PySide6.QtCharts.QHXYModelMapper.setYRow(yRow)
Parameters

yRow – int

See also

yRow()

PySide6.QtCharts.QHXYModelMapper.xRow()
Return type

int

See also

setXRow()

PySide6.QtCharts.QHXYModelMapper.xRowChanged()
PySide6.QtCharts.QHXYModelMapper.yRow()
Return type

int

See also

setYRow()

PySide6.QtCharts.QHXYModelMapper.yRowChanged()