Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
src_gui_effects_qgraphicseffect.cpp File Reference

(05fc3aef53348fb58be6308076e000825b704e58)

Go to the source code of this file.

Functions

QLinearGradient alphaGradient (rect.topLeft(), rect.bottomLeft())
 [1]
alphaGradient setColorAt (0.0, Qt::transparent)
alphaGradient setColorAt (0.5, Qt::black)
alphaGradient setColorAt (1.0, Qt::transparent)
effect setOpacityMask (alphaGradient)

Variables

QGraphicsOpacityEffecteffect = new QGraphicsOpacityEffect
 the effect attached to this item

Function Documentation

◆ alphaGradient()

QLinearGradient alphaGradient ( rect. topLeft(),
rect. bottomLeft() )

[1]

[2]

◆ setColorAt() [1/3]

alphaGradient setColorAt ( 0. 0,
Qt::transparent  )

◆ setColorAt() [2/3]

alphaGradient setColorAt ( 0. 5,
Qt::black  )

◆ setColorAt() [3/3]

alphaGradient setColorAt ( 1. 0,
Qt::transparent  )

◆ setOpacityMask()

effect setOpacityMask ( alphaGradient )

Variable Documentation

◆ effect

the effect attached to this item

Since
4.7
See also
QGraphicsItem::setGraphicsEffect(), QGraphicsItem::graphicsEffect()

Definition at line 43 of file src_gui_effects_qgraphicseffect.cpp.