PySide6.QtGraphs.QAreaSeries

class QAreaSeries

QAreaSeries 类在面积图中展示数据。更多

PySide6.QtGraphs.QAreaSeries 的继承图

在版本6.8中添加。

概要

属性

方法

信号

注意

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

详细描述

面积图用于绘制由点组成的区域。这些点由两个系列定义:upperSerieslowerSeries。系列之间的区域被绘制为图形。如果只定义了 upperSeries,则区域位于图形底部和上部系列之间。

注意

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

property borderColorᅟ: QColor

此属性保存区域的边框颜色。默认值为Qt::transparent,表示边框颜色由主题定义。

Access functions:
property colorᅟ: QColor

此属性保存区域的填充颜色。默认值为Qt::transparent,表示颜色由主题定义。

Access functions:
property pointLabelsClippingᅟ: bool
Access functions:
property pointLabelsColorᅟ: QColor
Access functions:
property pointLabelsFontᅟ: QFont
Access functions:
property pointLabelsFormatᅟ: str
Access functions:
property pointLabelsVisibleᅟ: bool
Access functions:
__init__([parent=None])
Parameters:

父对象QObject

borderColor()
Return type:

QColor

另请参阅

setBorderColor()

属性 borderColorᅟ 的获取器。

borderColorChanged(color)
Parameters:

颜色QColor

属性 borderColorᅟ 的通知信号。

brush()
Return type:

QBrush

clicked(point)
Parameters:

QPointF

color()
Return type:

QColor

另请参阅

setColor()

属性 colorᅟ 的获取器。

colorChanged(color)
Parameters:

颜色QColor

属性 colorᅟ 的通知信号。

doubleClicked(point)
Parameters:

QPointF

hovered(point, state)
Parameters:
  • QPointF

  • state – 布尔值

pen()
Return type:

QPen

pointLabelsClipping()
Return type:

布尔

属性 pointLabelsClippingᅟ 的获取器。

pointLabelsClippingChanged(clipping)
Parameters:

clipping – bool

属性 pointLabelsClippingᅟ 的通知信号。

pointLabelsColor()
Return type:

QColor

属性 pointLabelsColorᅟ 的获取器。

pointLabelsColorChanged(color)
Parameters:

颜色QColor

属性 pointLabelsColorᅟ 的通知信号。

pointLabelsFont()
Return type:

QFont

属性 pointLabelsFontᅟ 的获取器。

pointLabelsFontChanged(font)
Parameters:

字体QFont

属性 pointLabelsFontᅟ 的通知信号。

pointLabelsFormat()
Return type:

字符串

属性 pointLabelsFormatᅟ 的获取器。

pointLabelsFormatChanged(format)
Parameters:

format – str

属性 pointLabelsFormatᅟ 的通知信号。

pointLabelsVisibilityChanged(visible)
Parameters:

visible – 布尔值

属性 pointLabelsVisibleᅟ 的通知信号。

pointLabelsVisible()
Return type:

布尔

属性 pointLabelsVisibleᅟ 的获取器。

pointsVisible()
Return type:

布尔

pressed(point)
Parameters:

QPointF

released(point)
Parameters:

QPointF

selected()
setBorderColor(color)
Parameters:

颜色QColor

另请参阅

borderColor()

属性 borderColorᅟ 的设置器。

setBrush(brush)
Parameters:

画笔QBrush

setColor(color)
Parameters:

颜色QColor

另请参阅

color()

属性 colorᅟ 的设置器。

setPen(pen)
Parameters:

QPen

setPointLabelsClipping([enabled=true])
Parameters:

enabled – 布尔值

属性 pointLabelsClippingᅟ 的设置器。

setPointLabelsColor(color)
Parameters:

颜色QColor

属性 pointLabelsColorᅟ 的设置器。

setPointLabelsFont(font)
Parameters:

字体QFont

属性 pointLabelsFontᅟ 的设置器。

setPointLabelsFormat(format)
Parameters:

format – str

属性 pointLabelsFormatᅟ 的设置器。

setPointLabelsVisible([visible=true])
Parameters:

visible – 布尔值

属性 pointLabelsVisibleᅟ 的设置器。

setPointsVisible([visible=true])
Parameters:

visible – 布尔值