Home · All Classes · Modules

QGraphicsDropShadowEffect Class Reference
[QtGui module]

The QGraphicsDropShadowEffect class provides a drop shadow effect. More...

Inherits QGraphicsEffect.

Methods

Qt Signals


Detailed Description

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.


Method Documentation

QGraphicsDropShadowEffect.__init__ (self, QObject parent = None)

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.

float QGraphicsDropShadowEffect.blurRadius (self)

QRectF QGraphicsDropShadowEffect.boundingRectFor (self, QRectF rect)

Reimplemented from QGraphicsEffect.boundingRectFor().

QColor QGraphicsDropShadowEffect.color (self)

QGraphicsDropShadowEffect.draw (self, QPainter painter)

Reimplemented from QGraphicsEffect.draw().

QPointF QGraphicsDropShadowEffect.offset (self)

QGraphicsDropShadowEffect.setBlurRadius (self, float blurRadius)

This method is also a Qt slot with the C++ signature void setBlurRadius( ::qreal).

QGraphicsDropShadowEffect.setColor (self, QColor color)

This method is also a Qt slot with the C++ signature void setColor(const ::QColor&).

QGraphicsDropShadowEffect.setOffset (self, QPointF ofs)

This method is also a Qt slot with the C++ signature void setOffset(const ::QPointF&).

QGraphicsDropShadowEffect.setOffset (self, float dx, float dy)

This method is also a Qt slot with the C++ signature void setOffset( ::qreal, ::qreal).

QGraphicsDropShadowEffect.setOffset (self, float d)

This method is also a Qt slot with the C++ signature void setOffset( ::qreal).

QGraphicsDropShadowEffect.setXOffset (self, float dx)

This method is also a Qt slot with the C++ signature void setXOffset( ::qreal).

QGraphicsDropShadowEffect.setYOffset (self, float dy)

This method is also a Qt slot with the C++ signature void setYOffset( ::qreal).

float QGraphicsDropShadowEffect.xOffset (self)

float QGraphicsDropShadowEffect.yOffset (self)


Qt Signal Documentation

void blurRadiusChanged ( ::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.

void colorChanged (const ::QColor&)

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.

void offsetChanged (const ::QPointF&)

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 X11Copyright © Riverbank Computing Ltd and The Qt Company 2015Qt 4.8.7