Qt 4.6: QGraphicsBlurEffect Class Reference

|  | Home · All Classes · Overviews |

# QGraphicsBlurEffect Class Reference
[QtGui module]

The QGraphicsBlurEffect class provides a blur effect. More...

     #include <QGraphicsBlurEffect>

Inherits QGraphicsEffect.

This class was introduced in Qt 4.6.

- List of all members, including inherited members

## Properties

- blurRadius : int

- 1 property inherited from QGraphicsEffect
- 1 property inherited from QObject

## Public Functions

| QGraphicsBlurEffect ( QObject * parent = 0 )
| ~QGraphicsBlurEffect ()
int | blurRadius () const

## Reimplemented Public Functions

virtual QRectF | boundingRectFor ( const QRectF & rect ) const

- 4 public functions inherited from QGraphicsEffect
- 29 public functions inherited from QObject

## Public Slots

void | setBlurRadius ( int blurRadius )

- 2 public slots inherited from QGraphicsEffect
- 1 public slot inherited from QObject

## Signals

void | blurRadiusChanged ( int radius )

- 1 signal inherited from QGraphicsEffect
- 1 signal inherited from QObject

## Reimplemented Protected Functions

virtual void | draw ( QPainter * painter, QGraphicsEffectSource * source )

- 3 protected functions inherited from QGraphicsEffect
- 7 protected functions inherited from QObject

### Additional Inherited Members

- 5 static public members inherited from QObject
- 3 protected functions inherited from QGraphicsEffect
- 7 protected functions inherited from QObject

## Detailed Description

The QGraphicsBlurEffect class provides a blur effect.

A blur effect blurs the source. This effect is useful for reducing details, such as when the source loses focus and you want to draw attention to other elements. The level of detail can be modified using the setBlurRadius() function.

By default, the blur radius is 5 pixels.

See also QGraphicsDropShadowEffect, QGraphicsPixelizeEffect, QGraphicsGrayscaleEffect, QGraphicsColorizeEffect, and QGraphicsOpacityEffect.

## Property Documentation

### blurRadius : int

This property holds the blur radius of the effect.

Using a smaller radius results in a sharper appearance, whereas a bigger radius results in a more blurred appearance.

By default, the blur radius is 5 pixels.

Access functions:

int | blurRadius () const
void | setBlurRadius ( int blurRadius )

Notifier signal:

void | blurRadiusChanged ( int radius )

## Member Function Documentation

### QGraphicsBlurEffect::QGraphicsBlurEffect ( QObject * parent = 0 )

Constructs a new QGraphicsBlurEffect instance. The parent parameter is passed to QGraphicsEffect's constructor.

### QGraphicsBlurEffect::~QGraphicsBlurEffect ()

Destroys the effect.

### void QGraphicsBlurEffect::blurRadiusChanged ( int radius ) `[signal]`

This signal is emitted whenever the effect's blur radius changes. The radius parameter holds the effect's new blur radius.

### QRectF QGraphicsBlurEffect::boundingRectFor ( const QRectF & rect ) const `[virtual]`

Reimplemented from QGraphicsEffect::boundingRectFor().

### void QGraphicsBlurEffect::draw ( QPainter * painter, QGraphicsEffectSource * source ) `[virtual protected]`

Reimplemented from QGraphicsEffect::draw().