QGraphicsOpacityEffect

The QGraphicsOpacityEffect class provides an opacity effect. More

Inheritance diagram of PySide6.QtWidgets.QGraphicsOpacityEffect

New in version 4.6.

Synopsis

Functions

Detailed Description

An opacity effect renders the source with an opacity. This effect is useful for making the source semi-transparent, similar to a fade-in/fade-out sequence. The opacity can be modified using the setOpacity() function.

By default, the opacity is 0.7.

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

parentPySide6.QtCore.QObject

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

PySide6.QtWidgets.QGraphicsOpacityEffect.opacity()
Return type

float

See also

setOpacity()

PySide6.QtWidgets.QGraphicsOpacityEffect.opacityChanged(opacity)
Parameters

opacity – float

PySide6.QtWidgets.QGraphicsOpacityEffect.opacityMask()
Return type

PySide6.QtGui.QBrush

See also

setOpacityMask()

PySide6.QtWidgets.QGraphicsOpacityEffect.opacityMaskChanged(mask)
Parameters

maskPySide6.QtGui.QBrush

PySide6.QtWidgets.QGraphicsOpacityEffect.setOpacity(opacity)
Parameters

opacity – float

See also

opacity()

PySide6.QtWidgets.QGraphicsOpacityEffect.setOpacityMask(mask)
Parameters

maskPySide6.QtGui.QBrush

See also

opacityMask()