QGraphicsDropShadowEffect

注意

该类在 Qt4.6 引入

概要

函数

槽

信号

详细描述

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() 函数。

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.

../../_images/graphicseffect-drop-shadow.png
class PySide.QtGui. QGraphicsDropShadowEffect ( [ parent=None ] )
参数: parent – PySide.QtCore.QObject

构造新 PySide.QtGui.QGraphicsDropShadowEffect instance. The parent 参数会被传递给 PySide.QtGui.QGraphicsEffect ‘s constructor.

PySide.QtGui.QGraphicsDropShadowEffect. 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.

PySide.QtGui.QGraphicsDropShadowEffect. blurRadiusChanged ( blurRadius )
参数: blurRadius – PySide.QtCore.qreal
PySide.QtGui.QGraphicsDropShadowEffect. 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)).

PySide.QtGui.QGraphicsDropShadowEffect. colorChanged ( color )
参数: color – PySide.QtGui.QColor
PySide.QtGui.QGraphicsDropShadowEffect. offset ( )
返回类型: 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.

PySide.QtGui.QGraphicsDropShadowEffect. offsetChanged ( offset )
参数: offset – PySide.QtCore.QPointF
PySide.QtGui.QGraphicsDropShadowEffect. setBlurRadius ( blurRadius )
参数: 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.

PySide.QtGui.QGraphicsDropShadowEffect. setColor ( color )
参数: 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)).

PySide.QtGui.QGraphicsDropShadowEffect. setOffset ( dx , dy )
参数:
  • dx – PySide.QtCore.qreal
  • dy – PySide.QtCore.qreal
PySide.QtGui.QGraphicsDropShadowEffect. setOffset ( d )
参数: d – PySide.QtCore.qreal
PySide.QtGui.QGraphicsDropShadowEffect. setOffset ( ofs )
参数: 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.

PySide.QtGui.QGraphicsDropShadowEffect. setXOffset ( dx )
参数: dx – PySide.QtCore.qreal

This property holds the horizontal shadow offset in pixels..

By default, the horizontal shadow offset is 8 pixels.

PySide.QtGui.QGraphicsDropShadowEffect. setYOffset ( dy )
参数: dy – PySide.QtCore.qreal

This property holds the vertical shadow offset in pixels..

By default, the vertical shadow offset is 8 pixels.

PySide.QtGui.QGraphicsDropShadowEffect. xOffset ( )
返回类型: PySide.QtCore.qreal

This property holds the horizontal shadow offset in pixels..

By default, the horizontal shadow offset is 8 pixels.

PySide.QtGui.QGraphicsDropShadowEffect. yOffset ( )
返回类型: PySide.QtCore.qreal

This property holds the vertical shadow offset in pixels..

By default, the vertical shadow offset is 8 pixels.