QGraphicsDropShadowEffect

The QGraphicsDropShadowEffect class provides a drop shadow effect. More

Inheritance diagram of PySide2.QtWidgets.QGraphicsDropShadowEffect

New in version 4.6.

Synopsis

Functions

Slots

Signals

Detailed Description

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() function.

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

Constructs a new QGraphicsDropShadowEffect instance. The parent parameter is passed to QGraphicsEffect ‘s constructor.

PySide2.QtWidgets.QGraphicsDropShadowEffect.blurRadius()
Return type

qreal

See also

setBlurRadius()

PySide2.QtWidgets.QGraphicsDropShadowEffect.blurRadiusChanged(blurRadius)
Parameters

blurRadiusqreal

PySide2.QtWidgets.QGraphicsDropShadowEffect.color()
Return type

QColor

See also

setColor()

PySide2.QtWidgets.QGraphicsDropShadowEffect.colorChanged(color)
Parameters

colorQColor

PySide2.QtWidgets.QGraphicsDropShadowEffect.offset()
Return type

QPointF

See also

setOffset()

PySide2.QtWidgets.QGraphicsDropShadowEffect.offsetChanged(offset)
Parameters

offsetQPointF

PySide2.QtWidgets.QGraphicsDropShadowEffect.setBlurRadius(blurRadius)
Parameters

blurRadiusqreal

See also

blurRadius()

PySide2.QtWidgets.QGraphicsDropShadowEffect.setColor(color)
Parameters

colorQColor

See also

color()

PySide2.QtWidgets.QGraphicsDropShadowEffect.setOffset(ofs)
Parameters

ofsQPointF

PySide2.QtWidgets.QGraphicsDropShadowEffect.setOffset(d)
Parameters

dqreal

PySide2.QtWidgets.QGraphicsDropShadowEffect.setOffset(dx, dy)
Parameters
  • dxqreal

  • dyqreal

PySide2.QtWidgets.QGraphicsDropShadowEffect.setXOffset(dx)
Parameters

dxqreal

See also

xOffset()

PySide2.QtWidgets.QGraphicsDropShadowEffect.setYOffset(dy)
Parameters

dyqreal

See also

yOffset()

PySide2.QtWidgets.QGraphicsDropShadowEffect.xOffset()
Return type

qreal

See also

setXOffset()

PySide2.QtWidgets.QGraphicsDropShadowEffect.yOffset()
Return type

qreal

See also

setYOffset()