QVPieModelMapper

The QVPieModelMapper is a vertical model mapper for pie series. More

Inheritance diagram of PySide6.QtCharts.QVPieModelMapper

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 QPieSeries , so that each row in the data model defines a pie slice and each column maps to the label or the value of the pie slice.

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

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

parentPySide6.QtCore.QObject

Constructs a mapper object that is a child of parent.

PySide6.QtCharts.QVPieModelMapper.firstRow()
Return type

int

See also

setFirstRow()

PySide6.QtCharts.QVPieModelMapper.firstRowChanged()
PySide6.QtCharts.QVPieModelMapper.labelsColumn()
Return type

int

Returns the column of the model that is kept in sync with the labels of the pie’s slices.

PySide6.QtCharts.QVPieModelMapper.labelsColumnChanged()
PySide6.QtCharts.QVPieModelMapper.modelReplaced()
PySide6.QtCharts.QVPieModelMapper.rowCount()
Return type

int

See also

setRowCount()

PySide6.QtCharts.QVPieModelMapper.rowCountChanged()
PySide6.QtCharts.QVPieModelMapper.seriesReplaced()
PySide6.QtCharts.QVPieModelMapper.setFirstRow(firstRow)
Parameters

firstRow – int

See also

firstRow()

PySide6.QtCharts.QVPieModelMapper.setLabelsColumn(labelsColumn)
Parameters

labelsColumn – int

Sets the model column that is kept in sync with the pies slices’ labels to labelsColumn.

See also

labelsColumn()

PySide6.QtCharts.QVPieModelMapper.setRowCount(rowCount)
Parameters

rowCount – int

See also

rowCount()

PySide6.QtCharts.QVPieModelMapper.setValuesColumn(valuesColumn)
Parameters

valuesColumn – int

Sets the model column that is kept in sync with the pie slices’ values to valuesColumn.

See also

valuesColumn()

PySide6.QtCharts.QVPieModelMapper.valuesColumn()
Return type

int

Returns the column of the model that is kept in sync with the values of the pie’s slices.

PySide6.QtCharts.QVPieModelMapper.valuesColumnChanged()