PySide6.QtCharts.QLegend¶
- class QLegend¶
-
概要¶
属性¶
方法¶
def
alignment()def
attachToChart()def
borderColor()def
brush()def
color()def
isInteractive()def
labelBrush()def
labelColor()def
markerShape()def
markers()def
pen()def
reverseMarkers()def
setAlignment()def
setBorderColor()def
setBrush()def
setColor()def
setInteractive()def
setLabelBrush()def
setLabelColor()def
setMarkerShape()def
setPen()def
showToolTips()
信号¶
注意
本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。
详细描述¶
- class MarkerShape¶
注意
当使用
from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。- property alignmentᅟ: Combination of Qt.AlignmentFlag¶
- Access functions:
- property backgroundVisibleᅟ: bool¶
- Access functions:
- Access functions:
- Access functions:
- Access functions:
- Access functions:
- property markerShapeᅟ: QLegend.MarkerShape¶
- Access functions:
- property reverseMarkersᅟ: bool¶
- Access functions:
- property showToolTipsᅟ: bool¶
- Access functions:
- alignment()¶
- Return type:
AlignmentFlag的组合
属性
alignmentᅟ的获取器。- attachToChart()¶
- attachedToChartChanged(attachedToChart)¶
- Parameters:
attachedToChart – 布尔值
- backgroundVisibleChanged(visible)¶
- Parameters:
visible – 布尔值
属性
backgroundVisibleᅟ的通知信号。属性
borderColorᅟ的获取器。属性
borderColorᅟ的通知信号。属性
colorᅟ的获取器。属性
colorᅟ的通知信号。- detachFromChart()¶
属性
fontᅟ的通知信号。- interactiveChanged(interactive)¶
- Parameters:
interactive – 布尔值
- isAttachedToChart()¶
- Return type:
布尔
- isBackgroundVisible()¶
- Return type:
布尔
属性
backgroundVisibleᅟ的获取器。- isInteractive()¶
- Return type:
布尔
属性
labelColorᅟ的获取器。属性
labelColorᅟ的通知信号。- markerShape()¶
- Return type:
属性
markerShapeᅟ的获取器。- markerShapeChanged(shape)¶
- Parameters:
形状 –
MarkerShape
属性
markerShapeᅟ的通知信号。- markers()¶
- Return type:
QLegendMarker 的列表
- reverseMarkers()¶
- Return type:
布尔
属性
reverseMarkersᅟ的获取器。- reverseMarkersChanged(reverseMarkers)¶
- Parameters:
reverseMarkers – 布尔值
属性
reverseMarkersᅟ的通知信号。- setAlignment(alignment)¶
- Parameters:
alignment –
AlignmentFlag的组合
属性
alignmentᅟ的设置器。- setBackgroundVisible([visible=true])¶
- Parameters:
visible – 布尔值
属性
backgroundVisibleᅟ的设置器。属性
borderColorᅟ的设置器。属性
colorᅟ的设置器。- setInteractive(interactive)¶
- Parameters:
interactive – 布尔值
属性
labelColorᅟ的设置器。- setMarkerShape(shape)¶
- Parameters:
形状 –
MarkerShape
属性
markerShapeᅟ的设置器。- setReverseMarkers([reverseMarkers=true])¶
- Parameters:
reverseMarkers – bool
属性
reverseMarkersᅟ的设置器。- setShowToolTips(show)¶
- Parameters:
显示 – 布尔值
属性
showToolTipsᅟ的设置器。- showToolTips()¶
- Return type:
布尔
属性
showToolTipsᅟ的获取器。- showToolTipsChanged(showToolTips)¶
- Parameters:
showToolTips – 布尔值
属性
showToolTipsᅟ的通知信号。