Skip to content

PythonQt.QtGui.QGraphicsOpacityEffect · declarations 001

Back to PythonQt.QtGui.QGraphicsOpacityEffect

destroyed

destroyed(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsOpacityEffect.destroyed; argument details are not documented.

draw

draw(painter: Any) -> None

X.draw(painter)

Supplemental documentation: Qt 5 reference:

[override virtual protected] void QGraphicsOpacityEffect::draw(QPainter *painter)

Reimplements: QGraphicsEffect::draw(QPainter *painter).

Upstream PySide2 reference signatures (binding differences may apply):

draw(self, painter: PySide2.QtGui.QPainter) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsopacityeffect.html#draw

enabledChanged

enabledChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsOpacityEffect.enabledChanged; argument details are not documented.

objectNameChanged

objectNameChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsOpacityEffect.objectNameChanged; argument details are not documented.

opacity instance-attribute

opacity: float

Qt 5 reference:

opacity : qreal

This property holds the opacity of the effect.

The value should be in the range of 0.0 to 1.0, where 0.0 is fully transparent and 1.0 is fully opaque.

By default, the opacity is 0.7.

Access functions:

qreal opacity() const
void setOpacity(qreal opacity)

Notifier signal:

void opacityChanged(qreal opacity)

See also setOpacityMask().

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsopacityeffect.html#opacity

opacityChanged

opacityChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsOpacityEffect.opacityChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QGraphicsOpacityEffect::opacityChanged(qreal opacity)

This signal is emitted whenever the effect's opacity changes. The opacity parameter holds the effect's new opacity.

Note: Notifier signal for property opacity.

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsopacityeffect.html#opacityChanged

opacityMask instance-attribute

opacityMask: QBrush

Qt 5 reference:

opacityMask : QBrush

This property holds the opacity mask of the effect.

An opacity mask allows you apply opacity to portions of an element.

For example:

...
QLinearGradient alphaGradient(rect.topLeft(), rect.bottomLeft());
alphaGradient.setColorAt(0.0, Qt::transparent);
alphaGradient.setColorAt(0.5, Qt::black);
alphaGradient.setColorAt(1.0, Qt::transparent);
QGraphicsOpacityEffect *effect = new QGraphicsOpacityEffect;
effect->setOpacityMask(alphaGradient);
...

There is no opacity mask by default.

Access functions:

QBrush opacityMask() const
void setOpacityMask(const QBrush \&mask)

Notifier signal:

void opacityMaskChanged(const QBrush \&mask)

See also setOpacity().

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsopacityeffect.html#opacityMask

opacityMaskChanged

opacityMaskChanged(*args: Any, **kwargs: Any) -> Any

Native PythonQt.QtGui.QGraphicsOpacityEffect.opacityMaskChanged; argument details are not documented.

Supplemental documentation: Qt 5 reference:

[signal] void QGraphicsOpacityEffect::opacityMaskChanged(const QBrush \&mask)

This signal is emitted whenever the effect's opacity mask changes. The mask parameter holds the effect's new opacity mask.

Note: Notifier signal for property opacityMask.

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsopacityeffect.html#opacityMaskChanged

setOpacity

setOpacity(opacity: float) -> None

X.setOpacity(opacity)

Upstream PySide2 reference signatures (binding differences may apply):

setOpacity(self, opacity: float) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsopacityeffect.html#setOpacity

setOpacityMask

setOpacityMask(mask: Any) -> None

X.setOpacityMask(mask)

Upstream PySide2 reference signatures (binding differences may apply):

setOpacityMask(self, mask: PySide2.QtGui.QBrush) -> None

Source: https://doc.qt.io/archives/qt-5.15/qgraphicsopacityeffect.html#setOpacityMask