QVBoxPlotModelMapper 是用於框形圖係列的垂直模型映射器。 更多...
| 頭: | #include <QVBoxPlotModelMapper> |
| 實例化: | VBoxPlotModelMapper |
| 繼承: | QObject |
|
| QVBoxPlotModelMapper (QObject * parent = nullptr) | |
| int | firstBoxSetColumn () const |
| int | firstRow () const |
| int | lastBoxSetColumn () const |
| QAbstractItemModel * | model () const |
| int | rowCount () const |
| QBoxPlotSeries * | series () const |
| void | setFirstBoxSetColumn (int firstBoxSetColumn ) |
| void | setFirstRow (int firstRow ) |
| void | setLastBoxSetColumn (int lastBoxSetColumn ) |
| void | setModel (QAbstractItemModel * model ) |
| void | setRowCount (int rowCount ) |
| void | setSeries (QBoxPlotSeries * series ) |
| void | firstBoxSetColumnChanged () |
| void | firstRowChanged () |
| void | lastBoxSetColumnChanged () |
| void | modelReplaced () |
| void | rowCountChanged () |
| void | seriesReplaced () |
模型映射器允許使用的數據模型派生自 QAbstractItemModel class as a data source for a chart. A vertical model mapper is used to create a connection between a data model and a QBoxPlotSeries object, so that each column in the data model defines a box-and-whiskers item and each row maps to the range and three median values of the box-and-whiskers item.
Both model and series properties can be used to manipulate the data. The model mapper keeps the series and the data model in sync.
The model mapper ensures that all the bar box-and-whiskers items in the box plot series have equal sizes. Therefore, adding or removing a value from a box-and-whiskers item causes the same change to be made in all the box-and-whiskers items in the box plot series.
另請參閱 QHBoxPlotModelMapper .
This property holds the column of the model that is used as the data source for the first box-and-whiskers item.
默認值為 -1 (無效映射)。
訪問函數:
| int | firstBoxSetColumn () const |
| void | setFirstBoxSetColumn (int firstBoxSetColumn ) |
通知程序信號:
| void | firstBoxSetColumnChanged () |
This property holds the row of the model that contains the first values of the box-and-whiskers items in the box plot series.
最小且默認值為 0。
訪問函數:
| int | firstRow () const |
| void | setFirstRow (int firstRow ) |
通知程序信號:
| void | firstRowChanged () |
This property holds the column of the model that is used as the data source for the last box-and-whiskers item.
默認值為 -1 (無效映射)。
訪問函數:
| int | lastBoxSetColumn () const |
| void | setLastBoxSetColumn (int lastBoxSetColumn ) |
通知程序信號:
| void | lastBoxSetColumnChanged () |
此特性保持映射器使用的模型。
訪問函數:
| QAbstractItemModel * | model () const |
| void | setModel (QAbstractItemModel * model ) |
通知程序信號:
| void | modelReplaced () |
This property holds the number of rows of the model that are mapped as the data for the box plot series.
The minimum and default value is -1 (number limited to the number of columns in the model).
訪問函數:
| int | rowCount () const |
| void | setRowCount (int rowCount ) |
通知程序信號:
| void | rowCountChanged () |
This property holds the box plot 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).
訪問函數:
| QBoxPlotSeries * | series () const |
| void | setSeries (QBoxPlotSeries * series ) |
通知程序信號:
| void | seriesReplaced () |
構造映射器對象為子級化 parent .
[signal]
void
QVBoxPlotModelMapper::
firstBoxSetColumnChanged
()
This signal is emitted when the first box-and-whiskers item column changes.
注意: 通知程序信號對於特性 firstBoxSetColumn .
[signal]
void
QVBoxPlotModelMapper::
firstRowChanged
()
This signal is emitted when the first row changes.
注意: 通知程序信號對於特性 firstRow .
[signal]
void
QVBoxPlotModelMapper::
lastBoxSetColumnChanged
()
This signal is emitted when the last box-and-whiskers item column changes.
注意: 通知程序信號對於特性 lastBoxSetColumn .
[signal]
void
QVBoxPlotModelMapper::
modelReplaced
()
This signal is emitted when the model that the mapper is connected to changes.
注意: 通知程序信號對於特性 model .
[signal]
void
QVBoxPlotModelMapper::
rowCountChanged
()
This signal is emitted when the number of rows changes.
注意: 通知程序信號對於特性 rowCount .
[signal]
void
QVBoxPlotModelMapper::
seriesReplaced
()
This signal is emitted when the series that the mapper is connected to changes.
注意: 通知程序信號對於特性 series .