BarDataProxy QML Type (Uncreatable)
3D条形图的数据代理。更多...
| Import Statement: | import QtGraphs |
| In C++: | QBarDataProxy |
| Inherits: | |
| Inherited By: |
注意:此为不可创建的类型。无法在 QML 中实例化。
- 所有成员列表(包括继承的成员)
- BarDataProxy 属于Qt Graphs 的3D QML 类型。
属性
信号
- colCountChanged(int count)
- itemChanged(int rowIndex, int columnIndex)
- rowCountChanged(int count)
- seriesChanged(Bar3DSeries series)
详细说明
该类型用于处理使用Qt Quick 2对数据行进行添加、插入、修改和删除操作。
该类型无法实例化,但包含通过子类型公开的属性。
有关更完整的描述,请参阅QBarDataProxy 。
另请参阅 ItemModelBarDataProxy 和Qt Graphs 3D 数据处理。
属性文档
colCount : int [read-only]
数组中的列数。
rowCount : int [read-only]
数组中的行数。
series : Bar3DSeries [read-only]
此代理所属的系列。
type : AbstractDataProxy.DataType [read-only]
代理的类型。QAbstractDataProxy::DataType 中的一个值。
Signal 文档
colCountChanged(int count)
当colCount 变为count 时,会触发此信号。
注意: 相应的处理程序 是onColCountChanged 。
itemChanged(int rowIndex, int columnIndex)
当位于rowIndex 和columnIndex 指定位置的项目发生变化时,会发出此信号。如果在数组中修改了该项目而未调用 setItem() 方法,则需要发出此信号以更新图形。
注意: 对应的处理程序 是onItemChanged 。
rowCountChanged(int count)
当rowCount 变为count 时,会触发此信号。
注意: 相应的处理程序 是onRowCountChanged 。
seriesChanged(Bar3DSeries series)
当series 变为series 时,会触发此信号。
注意: 相应的处理程序 是onSeriesChanged 。
© 2026 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.