The QGraphicsDropShadowEffect class provides a drop shadow 效果。 更多...
继承 QGraphicsEffect .
The QGraphicsDropShadowEffect class provides a drop shadow 效果。
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 the setOffset () function and the blur radius of the drop shadow can be changed with the setBlurRadius () 函数。
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.
parent argument, if not None, causes self to be owned by Qt instead of PyQt.
构造新 QGraphicsDropShadowEffect instance. The parent 参数会被传递给 QGraphicsEffect 的构造函数。
重实现自 QGraphicsEffect.boundingRectFor ().
重实现自 QGraphicsEffect.draw ().
This method is also a Qt slot with the C++ signature void setBlurRadius(qreal) .
This method is also a Qt slot with the C++ signature void setColor(const QColor&) .
This method is also a Qt slot with the C++ signature void setOffset(const QPointF&) .
This method is also a Qt slot with the C++ signature void setOffset(qreal,qreal) .
This method is also a Qt slot with the C++ signature void setOffset(qreal) .
This method is also a Qt slot with the C++ signature void setXOffset(qreal) .
This method is also a Qt slot with the C++ signature void setYOffset(qreal) .
This is the default overload of this signal.
This signal is emitted whenever the effect's blur radius 改变。 blurRadius parameter holds the effect's new blur radius.
This is the default overload of this signal.
此信号被发射,每当效果的颜色改变时。 color 参数保持效果的新颜色。
This is the default overload of this signal.
This signal is emitted whenever the effect's shadow offset 改变。 offset parameter holds the effect's new shadow offset.