QXYModelMapper Class | Qt Charts 5.13.0

Qt 5.13 | Qt Charts | C++ Classes | QXYModelMapper

Qt Charts | Commercial or GPLv3

# QXYModelMapper Class

Inherits: | QObject
Inherited By: | QHXYModelMapper and QVXYModelMapper

- List of all members, including inherited members

## Protected Functions

| QXYModelMapper(QObject *parent = nullptr)
Qt::Orientation | orientation() const
void | setOrientation(Qt::Orientation orientation)
void | setXSection(int xSection)
void | setYSection(int ySection)
int | xSection() const
int | ySection() const

## Member Function Documentation

### `[protected]` QXYModelMapper::QXYModelMapper(QObject *parent = nullptr)

Constructs a mapper object which is a child of parent.

### `[protected]` Qt::Orientation QXYModelMapper::orientation() const

Returns the orientation that is used when QXYModelMapper accesses the model. This mean whether the consecutive x/y values of the QXYSeries are read from rows (Qt::Horizontal) or from columns (Qt::Vertical)

See also setOrientation().

### `[protected]` void QXYModelMapper::setOrientation(Qt::Orientation orientation)

Returns the orientation that is used when QXYModelMapper accesses the model. This mean whether the consecutive x/y values of the QXYSeries are read from rows (Qt::Horizontal) or from columns (Qt::Vertical)

See also orientation().

### `[protected]` void QXYModelMapper::setXSection(int xSection)

Sets the model section that is kept in sync with the x values of the QXYSeries. Parameter xSection specifies the section of the model.

See also xSection().

### `[protected]` void QXYModelMapper::setYSection(int ySection)

Sets the model section that is kept in sync with the y values of the QXYSeries. Parameter ySection specifies the section of the model.

See also ySection().

### `[protected]` int QXYModelMapper::xSection() const

Returns which section of the model is kept in sync with the x values of the QXYSeries

See also setXSection().

### `[protected]` int QXYModelMapper::ySection() const

Returns which section of the model is kept in sync with the y values of the QXYSeries

See also setYSection().