Bar3DSeries QML Type
用三维条形图表示数据序列。更多
Import Statement: | import QtDataVisualization 1.9 |
Since: | QtDataVisualization 1.0 |
In C++: | QBar3DSeries |
Inherits: |
属性
- 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 度的值。
rowColors : list<ThemeColor> |
该属性可用于以不同颜色绘制序列行。Theme3D.colorStyle 必须设置为ColorStyleUniform
才能使用该属性。
注意: 如果设置了该属性并更改了主题,rowColors 列表不会自动清除。
此属性在 Qt 6.3 中引入。
另请参阅 Q3DTheme::ColorStyleUniform 。
selectedBar : point |
系列中被选中的条形图。
选定条形图的位置在系列数据数组中指定为行和列。
一次只能选择一个条形图。
要从该系列中取消选择,请将invalidSelectionPosition 设置为位置。
如果将此系列添加到图表中,图表会根据用户交互或当选择无效时调整选择。选择另一个已添加系列上的条形图也会清除选择。
在所选条形图行之前从系列中移除行或插入行都会调整选择,使同一条形图保持被选中。
另请参阅 AbstractGraph3D.clearSelection()。
© 2025 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.