QHBarModelMapper

The QHBarModelMapper class is a horizontal model mapper for bar series. More

Inheritance diagram of PySide6.QtCharts.QHBarModelMapper

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 data model and QAbstractBarSeries , so that each row in the data model defines a bar set and each column 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.

See also

QVBarModelMapper

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

parentPySide6.QtCore.QObject

Constructs a mapper object that is a child of parent.

PySide6.QtCharts.QHBarModelMapper.columnCount()
Return type

int

See also

setColumnCount()

PySide6.QtCharts.QHBarModelMapper.columnCountChanged()
PySide6.QtCharts.QHBarModelMapper.firstBarSetRow()
Return type

int

PySide6.QtCharts.QHBarModelMapper.firstBarSetRowChanged()
PySide6.QtCharts.QHBarModelMapper.firstColumn()
Return type

int

See also

setFirstColumn()

PySide6.QtCharts.QHBarModelMapper.firstColumnChanged()
PySide6.QtCharts.QHBarModelMapper.lastBarSetRow()
Return type

int

PySide6.QtCharts.QHBarModelMapper.lastBarSetRowChanged()
PySide6.QtCharts.QHBarModelMapper.modelReplaced()
PySide6.QtCharts.QHBarModelMapper.seriesReplaced()
PySide6.QtCharts.QHBarModelMapper.setColumnCount(columnCount)
Parameters

columnCount – int

See also

columnCount()

PySide6.QtCharts.QHBarModelMapper.setFirstBarSetRow(firstBarSetRow)
Parameters

firstBarSetRow – int

See also

firstBarSetRow()

PySide6.QtCharts.QHBarModelMapper.setFirstColumn(firstColumn)
Parameters

firstColumn – int

See also

firstColumn()

PySide6.QtCharts.QHBarModelMapper.setLastBarSetRow(lastBarSetRow)
Parameters

lastBarSetRow – int

See also

lastBarSetRow()