PySide6.QtCharts.QAbstractBarSeries¶
- class QAbstractBarSeries¶
-
继承自:
QBarSeries,QStackedBarSeries,QPercentBarSeries,QHorizontalStackedBarSeries,QHorizontalPercentBarSeries,QHorizontalBarSeries概要¶
属性¶
方法¶
def
barWidth()def
clear()def
count()def
labelsAngle()def
labelsFormat()def
labelsPosition()def
setBarWidth()def
setLabelsAngle()
信号¶
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
- class LabelsPosition¶
注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property barWidthᅟ: float¶
- Access functions:
- property countᅟ: int¶
- Access functions:
- property labelsAngleᅟ: float¶
- Access functions:
- property labelsFormatᅟ: str¶
- Access functions:
- property labelsPositionᅟ: QAbstractBarSeries.LabelsPosition¶
- Access functions:
- property labelsPrecisionᅟ: int¶
- Access functions:
- property labelsVisibleᅟ: bool¶
- Access functions:
- barWidth()¶
- Return type:
浮点数
属性
barWidthᅟ的获取器。- clear()¶
- count()¶
- Return type:
整数
属性
countᅟ的获取器。- countChanged()¶
属性
countᅟ的通知信号。- isLabelsVisible()¶
- Return type:
布尔
属性
labelsVisibleᅟ的获取器。- labelsAngle()¶
- Return type:
浮点数
属性
labelsAngleᅟ的获取器。- labelsAngleChanged(angle)¶
- Parameters:
angle – 浮点数
属性
labelsAngleᅟ的通知信号。- labelsFormat()¶
- Return type:
字符串
属性
labelsFormatᅟ的获取器。- labelsFormatChanged(format)¶
- Parameters:
format – str
属性
labelsFormatᅟ的通知信号。- labelsPosition()¶
- Return type:
属性
labelsPositionᅟ的获取器。- labelsPositionChanged(position)¶
- Parameters:
位置 –
LabelsPosition
属性
labelsPositionᅟ的通知信号。- labelsPrecision()¶
- Return type:
整数
属性
labelsPrecisionᅟ的获取器。- labelsPrecisionChanged(precision)¶
- Parameters:
precision – int
属性
labelsPrecisionᅟ的通知信号。- labelsVisibleChanged()¶
属性
labelsVisibleᅟ的通知信号。- setBarWidth(width)¶
- Parameters:
width – 浮点数
属性
barWidthᅟ的设置器。- setLabelsAngle(angle)¶
- Parameters:
angle – 浮点数
属性
labelsAngleᅟ的设置器。- setLabelsFormat(format)¶
- Parameters:
format – str
属性
labelsFormatᅟ的设置器。- setLabelsPosition(position)¶
- Parameters:
位置 –
LabelsPosition
属性
labelsPositionᅟ的设置器。- setLabelsPrecision(precision)¶
- Parameters:
精度 – int
属性
labelsPrecisionᅟ的设置器。- setLabelsVisible([visible=true])¶
- Parameters:
visible – 布尔值
属性
labelsVisibleᅟ的设置器。