QVBarModelMapper

The QVBarModelMapper class is a vertical model mapper for bar series. More

Inheritance diagram of PySide6.QtCharts.QVBarModelMapper

Synopsis

Functions

Detailed Description

Model mappers enable using a data model derived from the QAbstractItemModel class as a data source for a chart. A vertical model mapper is used to create a connection between a data model and QAbstractBarSeries , so that each column in the data model defines a bar set and each row maps to a category in a bar series.

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

The model mapper ensures that all the bar sets in the bar series have equal sizes. Therefore, adding or removing a value from a bar set causes the same change to be made in all the bar sets in the bar series.

For more information, see BarModelMapper Example .

See also

QHBarModelMapper

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

parentPySide6.QtCore.QObject

Constructs a mapper object that is a child of parent.

PySide6.QtCharts.QVBarModelMapper.firstBarSetColumn()
Return type

int

PySide6.QtCharts.QVBarModelMapper.firstBarSetColumnChanged()
PySide6.QtCharts.QVBarModelMapper.firstRow()
Return type

int

See also

setFirstRow()

PySide6.QtCharts.QVBarModelMapper.firstRowChanged()
PySide6.QtCharts.QVBarModelMapper.lastBarSetColumn()
Return type

int

PySide6.QtCharts.QVBarModelMapper.lastBarSetColumnChanged()
PySide6.QtCharts.QVBarModelMapper.modelReplaced()
PySide6.QtCharts.QVBarModelMapper.rowCount()
Return type

int

See also

setRowCount()

PySide6.QtCharts.QVBarModelMapper.rowCountChanged()
PySide6.QtCharts.QVBarModelMapper.seriesReplaced()
PySide6.QtCharts.QVBarModelMapper.setFirstBarSetColumn(firstBarSetColumn)
Parameters

firstBarSetColumn – int

PySide6.QtCharts.QVBarModelMapper.setFirstRow(firstRow)
Parameters

firstRow – int

See also

firstRow()

PySide6.QtCharts.QVBarModelMapper.setLastBarSetColumn(lastBarSetColumn)
Parameters

lastBarSetColumn – int

PySide6.QtCharts.QVBarModelMapper.setRowCount(rowCount)
Parameters

rowCount – int

See also

rowCount()