Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
src_gui_effects_qgraphicseffect.cpp File Reference

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]

Referenced by QWindowsVistaStyle::drawControl().

+ Here is the caller graph for this function:

◆ 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

QGraphicsObject::effect = new QGraphicsOpacityEffect