class QXYModelMapper

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

Inheritance diagram of PySide6.QtGraphs.QXYModelMapper

Inherited by: QVXYModelMapper, QHXYModelMapper

Added in version 6.8.

Synopsis

Methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

Detailed Description

Model mappers enable using a data model derived from the QAbstractItemModel class as a data source for a graph. A model mapper is used to create a connection between a line, spline, or scatter series. 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

QXYSeries

__init__([parent=None])
Parameters:

parentQObject

count()
Return type:

int

See also

setCount()

first()
Return type:

int

See also

setFirst()

model()
Return type:

QAbstractItemModel

See also

setModel()

orientation()
Return type:

Orientation

See also

setOrientation()

setCount(count)
Parameters:

count – int

See also

count()

setFirst(first)
Parameters:

first – int

See also

first()

setModel(model)
Parameters:

modelQAbstractItemModel

See also

model()

setOrientation(orientation)
Parameters:

orientationOrientation

See also

orientation()

setXSection(xSection)
Parameters:

xSection – int

See also

xSection()

setYSection(ySection)
Parameters:

ySection – int

See also

ySection()

xSection()
Return type:

int

See also

setXSection()

ySection()
Return type:

int

See also

setYSection()