Drop Shadow Frame (dropshadow
)
Drop Shadow Frame
A widget providing a drop shadow (gaussian blur effect) around another widget.
- class orangecanvas.gui.dropshadow.DropShadowFrame(parent: Optional[PyQt5.QtWidgets.QWidget] = None, color: PyQt5.QtGui.QColor = <PyQt5.QtGui.QColor object>, radius: int = 5, **kwargs: Any)[source]
Bases:
PyQt5.QtWidgets.QWidget
A widget drawing a drop shadow effect around the geometry of another widget (works similar to
QFocusFrame
).- Parameters
parent (
QObject
) – Parent object.color (
QColor
) – The color of the drop shadow.radius (float) – Shadow radius.
- setColor(color: Union[PyQt5.QtGui.QColor, PyQt5.QtCore.Qt.GlobalColor]) None [source]
Set the color of the shadow.
- color() PyQt5.QtGui.QColor [source]
Return the color of the drop shadow.
By default this is a color from the palette (for self.foregroundRole())
- color_
Drop shadow color
- radius_
Drop shadow blur radius.
- offset_
Drop shadow offset.