QGraphicsDropShadowEffect

The QGraphicsDropShadowEffect class provides a drop shadow effect. More

Inheritance diagram of PySide6.QtWidgets.QGraphicsDropShadowEffect

New in version 4.6.

Synopsis

Functions

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.

class PySide6.QtWidgets.QGraphicsDropShadowEffect([parent=None])
Parameters

parentPySide6.QtCore.QObject

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

PySide6.QtWidgets.QGraphicsDropShadowEffect.blurRadius()
Return type

float

See also

setBlurRadius()

PySide6.QtWidgets.QGraphicsDropShadowEffect.blurRadiusChanged(blurRadius)
Parameters

blurRadius – float

PySide6.QtWidgets.QGraphicsDropShadowEffect.color()
Return type

PySide6.QtGui.QColor

See also

setColor()

PySide6.QtWidgets.QGraphicsDropShadowEffect.colorChanged(color)
Parameters

colorPySide6.QtGui.QColor

PySide6.QtWidgets.QGraphicsDropShadowEffect.offset()
Return type

PySide6.QtCore.QPointF

See also

setOffset()

PySide6.QtWidgets.QGraphicsDropShadowEffect.offsetChanged(offset)
Parameters

offsetPySide6.QtCore.QPointF

PySide6.QtWidgets.QGraphicsDropShadowEffect.setBlurRadius(blurRadius)
Parameters

blurRadius – float

See also

blurRadius()

PySide6.QtWidgets.QGraphicsDropShadowEffect.setColor(color)
Parameters

colorPySide6.QtGui.QColor

See also

color()

PySide6.QtWidgets.QGraphicsDropShadowEffect.setOffset(ofs)
Parameters

ofsPySide6.QtCore.QPointF

PySide6.QtWidgets.QGraphicsDropShadowEffect.setOffset(d)
Parameters

d – float

PySide6.QtWidgets.QGraphicsDropShadowEffect.setOffset(dx, dy)
Parameters
  • dx – float

  • dy – float

PySide6.QtWidgets.QGraphicsDropShadowEffect.setXOffset(dx)
Parameters

dx – float

See also

xOffset()

PySide6.QtWidgets.QGraphicsDropShadowEffect.setYOffset(dy)
Parameters

dy – float

See also

yOffset()

PySide6.QtWidgets.QGraphicsDropShadowEffect.xOffset()
Return type

float

See also

setXOffset()

PySide6.QtWidgets.QGraphicsDropShadowEffect.yOffset()
Return type

float

See also

setYOffset()