QGraphicsDropShadowEffectclass provides a drop shadow effect. 更多 …
4.6 版新增。
def
setBlurRadius
(blurRadius)
def
setColor
(color)
def
setOffset
(d)
def
setOffset
(dx, dy)
def
setOffset
(ofs)
def
setXOffset
(dx)
def
setYOffset
(dy)
def
blurRadiusChanged
(blurRadius)
def
colorChanged
(color)
def
offsetChanged
(offset)
A drop shadow effect renders the source with a drop shadow. The color of the drop shadow can be modified using the
setColor()function. The drop shadow offset can be modified using thesetOffset()function and the blur radius of the drop shadow can be changed with thesetBlurRadius()函数。By default, the drop shadow is a semi-transparent dark gray (
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.![]()
QGraphicsDropShadowEffect
(
[
parent=None
]
)
¶
- param parent
QObject
构造新
QGraphicsDropShadowEffect
instance. The
parent
参数会被传递给
QGraphicsEffect
‘s constructor.
PySide2.QtWidgets.QGraphicsDropShadowEffect.
blurRadius
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QGraphicsDropShadowEffect.
blurRadiusChanged
(
blurRadius
)
¶
blurRadius
–
qreal
PySide2.QtWidgets.QGraphicsDropShadowEffect.
color
(
)
¶
QColor
另请参阅
PySide2.QtWidgets.QGraphicsDropShadowEffect.
colorChanged
(
color
)
¶
color
–
QColor
PySide2.QtWidgets.QGraphicsDropShadowEffect.
offset
(
)
¶
QPointF
另请参阅
PySide2.QtWidgets.QGraphicsDropShadowEffect.
offsetChanged
(
offset
)
¶
offset
–
QPointF
PySide2.QtWidgets.QGraphicsDropShadowEffect.
setBlurRadius
(
blurRadius
)
¶
blurRadius
–
qreal
另请参阅
PySide2.QtWidgets.QGraphicsDropShadowEffect.
setOffset
(
ofs
)
¶
ofs
–
QPointF
PySide2.QtWidgets.QGraphicsDropShadowEffect.
setOffset
(
d
)
¶
d
–
qreal
PySide2.QtWidgets.QGraphicsDropShadowEffect.
setOffset
(
dx
,
dy
)
¶
dx
–
qreal
dy
–
qreal
PySide2.QtWidgets.QGraphicsDropShadowEffect.
xOffset
(
)
¶
qreal
另请参阅
PySide2.QtWidgets.QGraphicsDropShadowEffect.
yOffset
(
)
¶
qreal
另请参阅