Qt 4.6: QGraphicsGrayscaleEffect Class Reference

|  | Home · All Classes · Overviews |

# QGraphicsGrayscaleEffect Class Reference
[QtGui module]

The QGraphicsGrayscaleEffect class provides a grayscale effect. More...

     #include <QGraphicsGrayscaleEffect>

Inherits QGraphicsEffect.

This class was introduced in Qt 4.6.

- List of all members, including inherited members

## Public Functions

| QGraphicsGrayscaleEffect ( QObject * parent = 0 )
| ~QGraphicsGrayscaleEffect ()

- 4 public functions inherited from QGraphicsEffect
- 29 public functions 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

- 1 property inherited from QGraphicsEffect
- 1 property inherited from QObject
- 2 public slots inherited from QGraphicsEffect
- 1 public slot inherited from QObject
- 1 signal inherited from QGraphicsEffect
- 1 signal inherited from QObject
- 5 static public members inherited from QObject
- 3 protected functions inherited from QGraphicsEffect
- 7 protected functions inherited from QObject

## Detailed Description

The QGraphicsGrayscaleEffect class provides a grayscale effect.

A grayscale effect renders the source in shades of gray.

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

## Member Function Documentation

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

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

### QGraphicsGrayscaleEffect::~QGraphicsGrayscaleEffect ()

Destroys the effect.

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

Reimplemented from QGraphicsEffect::draw().