QBarModelMapper Class

The QBarModelMapper class is the base class for model mapper classes. \internal. More...

Header: #include <QBarModelMapper>
Inherits: QObject
Inherited By:

QHBarModelMapper and QVBarModelMapper

Protected Functions

int count() const
int first() const
int firstBarSetSection() const
int lastBarSetSection() const
Qt::Orientation orientation() const
void setCount(int count)
void setFirst(int first)
void setFirstBarSetSection(int firstBarSetSection)
void setLastBarSetSection(int lastBarSetSection)
void setOrientation(Qt::Orientation orientation)

Detailed Description

\inmoduleQtCharts

Model mappers enable using a data model derived from the QAbstractItemModel class as a data source for a chart.

Member Function Documentation

[protected] int QBarModelMapper::count() const

Returns the number of rows/columns of the model that are mapped as the data for QAbstractBarSeries Minimal and default value is: -1 (count limited by the number of rows/columns in the model)

See also setCount().

[protected] int QBarModelMapper::first() const

Returns which row/column of the model contains the first values of the QBarSets in the series. The default value is 0.

See also setFirst().

[protected] int QBarModelMapper::firstBarSetSection() const

Returns which section of the model is used as the data source for the first bar set

See also setFirstBarSetSection().

[protected] int QBarModelMapper::lastBarSetSection() const

Returns which section of the model is used as the data source for the last bar set

See also setLastBarSetSection().

[protected] Qt::Orientation QBarModelMapper::orientation() const

Returns the orientation that is used when QBarModelMapper accesses the model. This mean whether the consecutive values of the bar set are read from row (Qt::Horizontal) or from columns (Qt::Vertical)

See also setOrientation().

[protected] void QBarModelMapper::setCount(int count)

Sets the count of rows/columns of the model that are mapped as the data for QAbstractBarSeries Minimal and default value is: -1 (count limited by the number of rows/columns in the model)

See also count().

[protected] void QBarModelMapper::setFirst(int first)

Sets which row of the model contains the first values of the QBarSets in the series. The default value is 0.

See also first().

[protected] void QBarModelMapper::setFirstBarSetSection(int firstBarSetSection)

Sets the model section that is used as the data source for the first bar set Parameter firstBarSetSection specifies the section of the model.

See also firstBarSetSection().

[protected] void QBarModelMapper::setLastBarSetSection(int lastBarSetSection)

Sets the model section that is used as the data source for the last bar set Parameter lastBarSetSection specifies the section of the model.

See also lastBarSetSection().

[protected] void QBarModelMapper::setOrientation(Qt::Orientation orientation)

Returns the orientation that is used when QBarModelMapper accesses the model. This mean whether the consecutive values of the pie are read from row (Qt::Horizontal) or from columns (Qt::Vertical)

See also orientation().