Bar3DSeries QML Type
表示三维条形图中的数据系列。更多...
| Import Statement: | import QtDataVisualization 1.12 |
| Since: | QtDataVisualization 1.0 |
| In C++: | QBar3DSeries |
| Inherits: | |
| Status: | Deprecated |
此类型已弃用。我们强烈建议不要在新代码中使用它。
属性
- dataProxy : BarDataProxy
- invalidSelectionPosition : point
- meshAngle : real
- rowColors : list<ThemeColor>
(since 6.3) - selectedBar : point
详细说明
此类负责管理该系列特有的视觉元素,以及该系列的数据(通过数据代理)。
如需更完整的说明,请参阅QBar3DSeries 。
另请参阅 Qt Data Visualization 数据处理。
属性文档
dataProxy : BarDataProxy
活动数据代理。该序列会接管其上设置的任何代理,并在添加新代理时删除先前设置的代理。代理不能为空,也不能设置为另一个序列。
invalidSelectionPosition : point
一个常量属性,用于提供一个无效的选择位置。将该位置设置为selectedBar 属性,即可清除该系列中的选择。
另请参阅 AbstractGraph3D.clearSelection()。
meshAngle : real
一个用于以度为单位定义系列旋转角度的便捷属性。
注意: 读取此属性时 ,系统会根据 `Abstract3DSeries.meshRotation ` 的值采用浮点精度进行计算,并始终返回 0 到 360 度之间的数值。
另请参阅 Abstract3DSeries.meshRotation 。
rowColors : list<ThemeColor> [since 6.3]
此属性可用于将数据系列的行绘制为不同的颜色。要使用此属性,必须将Theme3D.colorStyle 设置为ColorStyleUniform 。
注意:如果 已设置该属性且主题发生变更,rowColors 列表不会自动清空。
该属性自 Qt 6.3 起引入。
另请参阅 Q3DTheme::ColorStyleUniform 。
selectedBar : point
该系列中被选中的柱形。
所选条形的位置以该系列数据数组中的行和列来指定。
每次只能选择一个柱形。
要清除该系列中的选择,请将位置设置为invalidSelectionPosition 。
如果将该系列添加到图表中,图表可以根据用户交互或当选择失效时调整选择。在另一个已添加的系列上选择一个条形也会清除该系列的选择。
从该系列中删除或插入位于所选柱形所在行之前的行,将调整选中状态,使该柱形保持选中。
另请参阅 AbstractGraph3D.clearSelection()。
© 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.