Qt 4.6: QGraphicsColorizeEffect Class Reference

|  | Home · All Classes · Overviews |

# QGraphicsColorizeEffect Class Reference
[QtGui module]

The QGraphicsColorizeEffect class provides a colorize effect. More...

     #include <QGraphicsColorizeEffect>

Inherits QGraphicsEffect.

This class was introduced in Qt 4.6.

- List of all members, including inherited members

## Properties

- color : QColor

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

## Public Functions

| QGraphicsColorizeEffect ( QObject * parent = 0 )
| ~QGraphicsColorizeEffect ()
QColor | color () const

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

## Public Slots

void | setColor ( const QColor & c )

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

## Signals

void | colorChanged ( const QColor & color )

- 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 QGraphicsColorizeEffect class provides a colorize effect.

A colorize effect renders the source with a tint of its color(). The color can be modified using the setColor() function.

By default, the color is light blue (QColor(0, 0, 192)).

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

## Property Documentation

### color : QColor

This property holds the color of the effect.

By default, the color is light blue (QColor(0, 0, 192)).

Access functions:

QColor | color () const
void | setColor ( const QColor & c )

Notifier signal:

void | colorChanged ( const QColor & color )

## Member Function Documentation

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

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

### QGraphicsColorizeEffect::~QGraphicsColorizeEffect ()

Destroys the effect.

### void QGraphicsColorizeEffect::colorChanged ( const QColor & color ) `[signal]`

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

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

Reimplemented from QGraphicsEffect::draw().