QHXYModelMapper Class
The QHXYModelMapper class is a horizontal model mapper for line, spline, and scatter series. 更多...
头文件: | #include <QHXYModelMapper> |
Instantiated By: | HXYModelMapper |
基类: | QXYModelMapper |
属性
|
- 1 个属性继承自 QObject
公有函数
QHXYModelMapper(QObject *parent = Q_NULLPTR) | |
int | columnCount() const |
int | firstColumn() const |
QAbstractItemModel * | model() const |
QXYSeries * | series() const |
void | setColumnCount(int columnCount) |
void | setFirstColumn(int firstColumn) |
void | setModel(QAbstractItemModel *model) |
void | setSeries(QXYSeries *series) |
void | setXRow(int xRow) |
void | setYRow(int yRow) |
int | xRow() const |
int | yRow() const |
- 32 个公有函数继承自 QObject
信号
void | columnCountChanged() |
void | firstColumnChanged() |
void | modelReplaced() |
void | seriesReplaced() |
void | xRowChanged() |
void | yRowChanged() |
- 2 个信号继承自 QObject
其他继承的成员
- 1 个公有槽函数继承自 QObject
- 1 个公有变量继承自 QObject
- 10 个静态公有成员继承自 QObject
- 6 个受保护的函数继承自 QXYModelMapper
- 9 个受保护的函数继承自 QObject
- 2 个受保护的变量继承自 QObject
详细描述
The QHXYModelMapper class is a horizontal model mapper for line, spline, and scatter series.
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 line, spline, or scatter series and the data model that holds the consecutive data point coordinates on rows.
Both model and series properties can be used to manipulate the data. The model mapper keeps the series and the data model in sync.
参见 QVXYModelMapper and QXYSeries.
属性
columnCount : int
This property holds the number of columns of the model that are mapped as the data for series.
The minimum and default value is -1 (the number is limited by the number of columns in the model).
访问函数:
int | columnCount() const |
void | setColumnCount(int columnCount) |
Notifier signal:
void | columnCountChanged() |
firstColumn : int
This property holds the column of the model that contains the data for the first point of the series.
The minimum and default value is 0.
访问函数:
int | firstColumn() const |
void | setFirstColumn(int firstColumn) |
Notifier signal:
void | firstColumnChanged() |
model : QAbstractItemModel *
This property holds the model that is used by the mapper.
访问函数:
QAbstractItemModel * | model() const |
void | setModel(QAbstractItemModel *model) |
Notifier signal:
void | modelReplaced() |
series : QXYSeries *
This property holds the series that is used by the mapper.
All the data in the series is discarded when it is set to the mapper. When a new series is specified, the old series is disconnected (but it preserves its data).
访问函数:
QXYSeries * | series() const |
void | setSeries(QXYSeries *series) |
Notifier signal:
void | seriesReplaced() |
xRow : int
This property holds the row of the model that contains the x-coordinates of the data points.
The default value is -1 (invalid mapping).
访问函数:
int | xRow() const |
void | setXRow(int xRow) |
Notifier signal:
void | xRowChanged() |
yRow : int
This property holds the row of the model that contains the y-coordinates of the data points.
The default value is -1 (invalid mapping).
访问函数:
int | yRow() const |
void | setYRow(int yRow) |
Notifier signal:
void | yRowChanged() |
成员函数
QHXYModelMapper::QHXYModelMapper(QObject *parent = Q_NULLPTR)
Constructs a mapper object that is a child of parent.
[signal]
void QHXYModelMapper::columnCountChanged()
This signal is emitted when the number of columns changes.
Note: Notifier signal for property columnCount.
[signal]
void QHXYModelMapper::firstColumnChanged()
This signal is emitted when the first column changes.
Note: Notifier signal for property firstColumn.
[signal]
void QHXYModelMapper::modelReplaced()
This signal is emitted when the model that the mapper is connected to changes.
Note: Notifier signal for property model.
[signal]
void QHXYModelMapper::seriesReplaced()
This signal is emitted when the series that the mapper is connected to changes.
Note: Notifier signal for property series.
[signal]
void QHXYModelMapper::xRowChanged()
This signal is emitted when the row that contains the x-coordinates of data points changes.
Note: Notifier signal for property xRow.
[signal]
void QHXYModelMapper::yRowChanged()
This signal is emitted when the row that contains the y-coordinates of data points changes.
Note: Notifier signal for property yRow.