内容表

上一话题

QGraphicsColorizeEffect

下一话题

QGraphicsEffect

QGraphicsDropShadowEffect

QGraphicsDropShadowEffect class provides a drop shadow effect. 更多

Inheritance diagram of PySide2.QtWidgets.QGraphicsDropShadowEffect

4.6 版新增。

概要

函数

信号

详细描述

A drop shadow effect renders the source with a drop shadow. The color of the drop shadow can be modified using the setColor() function. The drop shadow offset can be modified using the setOffset() function and the blur radius of the drop shadow can be changed with the setBlurRadius() 函数。

By default, the drop shadow is a semi-transparent dark gray ( QColor (63, 63, 63, 180)) shadow, blurred with a radius of 1 at an offset of 8 pixels towards the lower right. The drop shadow offset is specified in device coordinates.

../../_images/graphicseffect-drop-shadow.png
class QGraphicsDropShadowEffect ( [ parent=None ] )
param parent

QObject

构造新 QGraphicsDropShadowEffect instance. The parent 参数会被传递给 QGraphicsEffect ‘s constructor.

PySide2.QtWidgets.QGraphicsDropShadowEffect. blurRadius ( )
返回类型

qreal

另请参阅

setBlurRadius()

PySide2.QtWidgets.QGraphicsDropShadowEffect. blurRadiusChanged ( blurRadius )
参数

blurRadius qreal

PySide2.QtWidgets.QGraphicsDropShadowEffect. color ( )
返回类型

QColor

另请参阅

setColor()

PySide2.QtWidgets.QGraphicsDropShadowEffect. colorChanged ( color )
参数

color QColor

PySide2.QtWidgets.QGraphicsDropShadowEffect. offset ( )
返回类型

QPointF

另请参阅

setOffset()

PySide2.QtWidgets.QGraphicsDropShadowEffect. offsetChanged ( offset )
参数

offset QPointF

PySide2.QtWidgets.QGraphicsDropShadowEffect. setBlurRadius ( blurRadius )
参数

blurRadius qreal

另请参阅

blurRadius()

PySide2.QtWidgets.QGraphicsDropShadowEffect. setColor ( color )
参数

color QColor

另请参阅

color()

PySide2.QtWidgets.QGraphicsDropShadowEffect. setOffset ( ofs )
参数

ofs QPointF

PySide2.QtWidgets.QGraphicsDropShadowEffect. setOffset ( d )
参数

d qreal

PySide2.QtWidgets.QGraphicsDropShadowEffect. setOffset ( dx , dy )
参数
  • dx qreal

  • dy qreal

PySide2.QtWidgets.QGraphicsDropShadowEffect. setXOffset ( dx )
参数

dx qreal

另请参阅

xOffset()

PySide2.QtWidgets.QGraphicsDropShadowEffect. setYOffset ( dy )
参数

dy qreal

另请参阅

yOffset()

PySide2.QtWidgets.QGraphicsDropShadowEffect. xOffset ( )
返回类型

qreal

另请参阅

setXOffset()

PySide2.QtWidgets.QGraphicsDropShadowEffect. yOffset ( )
返回类型

qreal

另请参阅

setYOffset()