PySide6.QtGraphs.QGraphsLine

class QGraphsLine

在版本6.8中添加。

概要

属性

方法

注意

本文档可能包含从C++自动翻译到Python的代码片段。我们始终欢迎对代码片段翻译的贡献。如果您发现翻译问题,您也可以通过在我们的https:/bugreports.qt.io/projects/PYSIDE上创建工单来告知我们。

详细描述

注意

当使用from __feature__ import true_property时,属性可以直接使用,否则通过访问器函数使用。

property labelTextColorᅟ: QColor
Access functions:
property mainColorᅟ: QColor
Access functions:
property mainWidthᅟ: float
Access functions:
property subColorᅟ: QColor
Access functions:
property subWidthᅟ: float
Access functions:
__init__()
__init__(other)
Parameters:

其他QGraphsLine

labelTextColor()
Return type:

QColor

属性 labelTextColorᅟ 的获取器。

mainColor()
Return type:

QColor

属性 mainColorᅟ 的获取器。

mainWidth()
Return type:

浮点数

属性 mainWidthᅟ 的获取器。

__ne__(rhs)
Parameters:

rhsQGraphsLine

Return type:

布尔

__eq__(rhs)
Parameters:

rhsQGraphsLine

Return type:

布尔

setLabelTextColor(newColor)
Parameters:

newColorQColor

属性 labelTextColorᅟ 的设置器。

setMainColor(newColor)
Parameters:

newColorQColor

属性 mainColorᅟ 的设置器。

setMainWidth(newWidth)
Parameters:

newWidth – 浮点数

属性 mainWidthᅟ 的设置器。

setSubColor(newColor)
Parameters:

newColorQColor

属性 subColorᅟ 的设置器。

setSubWidth(newWidth)
Parameters:

newWidth – 浮点数

属性 subWidthᅟ 的设置器。

subColor()
Return type:

QColor

属性 subColorᅟ 的获取器。

subWidth()
Return type:

浮点数

属性 subWidthᅟ 的获取器。