PySide6.QtCharts.QLegend

class QLegend

PySide6.QtCharts.QLegend 的继承图

概要

属性

方法

信号

注意

本文档可能包含从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:
property borderColorᅟ: QColor
Access functions:
property colorᅟ: QColor
Access functions:
property fontᅟ: QFont
Access functions:
property labelColorᅟ: QColor
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()
Return type:

QColor

属性 borderColorᅟ 的获取器。

borderColorChanged(color)
Parameters:

颜色QColor

属性 borderColorᅟ 的通知信号。

brush()
Return type:

QBrush

color()
Return type:

QColor

属性 colorᅟ 的获取器。

colorChanged(color)
Parameters:

颜色QColor

属性 colorᅟ 的通知信号。

detachFromChart()
fontChanged(font)
Parameters:

字体QFont

属性 fontᅟ 的通知信号。

interactiveChanged(interactive)
Parameters:

interactive – 布尔值

isAttachedToChart()
Return type:

布尔

isBackgroundVisible()
Return type:

布尔

属性 backgroundVisibleᅟ 的获取器。

isInteractive()
Return type:

布尔

labelBrush()
Return type:

QBrush

labelColor()
Return type:

QColor

属性 labelColorᅟ 的获取器。

labelColorChanged(color)
Parameters:

颜色QColor

属性 labelColorᅟ 的通知信号。

markerShape()
Return type:

MarkerShape

属性 markerShapeᅟ 的获取器。

markerShapeChanged(shape)
Parameters:

形状MarkerShape

属性 markerShapeᅟ 的通知信号。

markers()
Return type:

QLegendMarker 的列表

pen()
Return type:

QPen

reverseMarkers()
Return type:

布尔

属性 reverseMarkersᅟ 的获取器。

reverseMarkersChanged(reverseMarkers)
Parameters:

reverseMarkers – 布尔值

属性 reverseMarkersᅟ 的通知信号。

setAlignment(alignment)
Parameters:

alignmentAlignmentFlag 的组合

属性 alignmentᅟ 的设置器。

setBackgroundVisible([visible=true])
Parameters:

visible – 布尔值

属性 backgroundVisibleᅟ 的设置器。

setBorderColor(color)
Parameters:

颜色QColor

属性 borderColorᅟ 的设置器。

setBrush(brush)
Parameters:

画笔QBrush

setColor(color)
Parameters:

颜色QColor

属性 colorᅟ 的设置器。

setInteractive(interactive)
Parameters:

interactive – 布尔值

setLabelBrush(brush)
Parameters:

画笔QBrush

setLabelColor(color)
Parameters:

颜色QColor

属性 labelColorᅟ 的设置器。

setMarkerShape(shape)
Parameters:

形状MarkerShape

属性 markerShapeᅟ 的设置器。

setPen(pen)
Parameters:

QPen

setReverseMarkers([reverseMarkers=true])
Parameters:

reverseMarkers – bool

属性 reverseMarkersᅟ 的设置器。

setShowToolTips(show)
Parameters:

显示 – 布尔值

属性 showToolTipsᅟ 的设置器。

showToolTips()
Return type:

布尔

属性 showToolTipsᅟ 的获取器。

showToolTipsChanged(showToolTips)
Parameters:

showToolTips – 布尔值

属性 showToolTipsᅟ 的通知信号。