Note
This class was introduced in Qt 4.6
The PySide.QtGui.QGraphicsDropShadowEffect class provides a drop shadow effect.
A drop shadow effect renders the source with a drop shadow. The color of the drop shadow can be modified using the PySide.QtGui.QGraphicsDropShadowEffect.setColor() function. The drop shadow offset can be modified using the PySide.QtGui.QGraphicsDropShadowEffect.setOffset() function and the blur radius of the drop shadow can be changed with the PySide.QtGui.QGraphicsDropShadowEffect.setBlurRadius() function.
By default, the drop shadow is a semi-transparent dark gray ( PySide.QtGui.QColor (63, 63, 63, 180)) shadow, blurred with a radius of 1 at an offset of 8 pixels towards the lower right. The drop shadow offset is specified in device coordinates.
Parameters: | parent – PySide.QtCore.QObject |
---|
Constructs a new PySide.QtGui.QGraphicsDropShadowEffect instance. The parent parameter is passed to PySide.QtGui.QGraphicsEffect ‘s constructor.
Return type: | PySide.QtCore.qreal |
---|
This property holds the blur radius in pixels of the drop shadow..
Using a smaller radius results in a sharper shadow, whereas using a bigger radius results in a more blurred shadow.
By default, the blur radius is 1 pixel.
Parameters: | blurRadius – PySide.QtCore.qreal |
---|
Return type: | PySide.QtGui.QColor |
---|
This property holds the color of the drop shadow..
By default, the drop color is a semi-transparent dark gray ( PySide.QtGui.QColor (63, 63, 63, 180)).
Parameters: | color – PySide.QtGui.QColor |
---|
Return type: | PySide.QtCore.QPointF |
---|
This property holds the shadow offset in pixels..
By default, the offset is 8 pixels towards the lower right.
The offset is given in device coordinates, which means it is unaffected by scale.
Parameters: | offset – PySide.QtCore.QPointF |
---|
Parameters: | blurRadius – PySide.QtCore.qreal |
---|
This property holds the blur radius in pixels of the drop shadow..
Using a smaller radius results in a sharper shadow, whereas using a bigger radius results in a more blurred shadow.
By default, the blur radius is 1 pixel.
Parameters: | color – PySide.QtGui.QColor |
---|
This property holds the color of the drop shadow..
By default, the drop color is a semi-transparent dark gray ( PySide.QtGui.QColor (63, 63, 63, 180)).
Parameters: | d – PySide.QtCore.qreal |
---|
Parameters: |
|
---|
Parameters: | ofs – PySide.QtCore.QPointF |
---|
This property holds the shadow offset in pixels..
By default, the offset is 8 pixels towards the lower right.
The offset is given in device coordinates, which means it is unaffected by scale.
Parameters: | dx – PySide.QtCore.qreal |
---|
This property holds the horizontal shadow offset in pixels..
By default, the horizontal shadow offset is 8 pixels.
Parameters: | dy – PySide.QtCore.qreal |
---|
This property holds the vertical shadow offset in pixels..
By default, the vertical shadow offset is 8 pixels.
Return type: | PySide.QtCore.qreal |
---|
This property holds the horizontal shadow offset in pixels..
By default, the horizontal shadow offset is 8 pixels.
Return type: | PySide.QtCore.qreal |
---|
This property holds the vertical shadow offset in pixels..
By default, the vertical shadow offset is 8 pixels.