Home · All Classes · Modules |
The QGraphicsDropShadowEffect class provides a drop shadow effect. More...
Inherits QGraphicsEffect.
The 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 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() function.
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.
The parent argument, if not None, causes self to be owned by Qt instead of PyQt.
Constructs a new QGraphicsDropShadowEffect instance. The parent parameter is passed to QGraphicsEffect's constructor.
Reimplemented from QGraphicsEffect.boundingRectFor().
Reimplemented from 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 changes. The blurRadius parameter holds the effect's new blur radius.
This is the default overload of this signal.
This signal is emitted whenever the effect's color changes. The color parameter holds the effect's new color.
This is the default overload of this signal.
This signal is emitted whenever the effect's shadow offset changes. The offset parameter holds the effect's new shadow offset.
PyQt 4.12.1 for X11 | Copyright © Riverbank Computing Ltd and The Qt Company 2015 | Qt 4.8.7 |