The QHXYModelMapper class is a horizontal model mapper for line, spline, and scatter series. 更多...
| 頭: | #include <QHXYModelMapper> |
| 實例化: | HXYModelMapper |
| 繼承: | QXYModelMapper |
|
| 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 |
| void | columnCountChanged () |
| void | firstColumnChanged () |
| void | modelReplaced () |
| void | seriesReplaced () |
| void | xRowChanged () |
| void | yRowChanged () |
The QHXYModelMapper class is a horizontal model mapper for line, spline, and scatter series.
模型映射器允許使用的數據模型派生自 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 .
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 ) |
通知程序信號:
| void | columnCountChanged () |
This property holds the column of the model that contains the data for the first point of the series.
最小且默認值為 0。
訪問函數:
| int | firstColumn () const |
| void | setFirstColumn (int firstColumn ) |
通知程序信號:
| void | firstColumnChanged () |
此特性保持映射器使用的模型。
訪問函數:
| QAbstractItemModel * | model () const |
| void | setModel (QAbstractItemModel * model ) |
通知程序信號:
| void | modelReplaced () |
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 ) |
通知程序信號:
| void | seriesReplaced () |
This property holds the row of the model that contains the x-coordinates of the data points.
默認值為 -1 (無效映射)。
訪問函數:
| int | xRow () const |
| void | setXRow (int xRow ) |
通知程序信號:
| void | xRowChanged () |
This property holds the row of the model that contains the y-coordinates of the data points.
默認值為 -1 (無效映射)。
訪問函數:
| int | yRow () const |
| void | setYRow (int yRow ) |
通知程序信號:
| void | yRowChanged () |
構造映射器對象為子級化 parent .
[signal]
void
QHXYModelMapper::
columnCountChanged
()
This signal is emitted when the number of columns changes.
注意: 通知程序信號對於特性 columnCount .
[signal]
void
QHXYModelMapper::
firstColumnChanged
()
This signal is emitted when the first column changes.
注意: 通知程序信號對於特性 firstColumn .
[signal]
void
QHXYModelMapper::
modelReplaced
()
This signal is emitted when the model that the mapper is connected to changes.
注意: 通知程序信號對於特性 model .
[signal]
void
QHXYModelMapper::
seriesReplaced
()
This signal is emitted when the series that the mapper is connected to changes.
注意: 通知程序信號對於特性 series .
[signal]
void
QHXYModelMapper::
xRowChanged
()
This signal is emitted when the row that contains the x-coordinates of data points changes.
注意: 通知程序信號對於特性 xRow .
[signal]
void
QHXYModelMapper::
yRowChanged
()
This signal is emitted when the row that contains the y-coordinates of data points changes.
注意: 通知程序信號對於特性 yRow .