![]() |
Home · All Classes · Overviews |
The QGraphicsColorizeEffect class provides a colorize effect. More...
#include <QGraphicsColorizeEffect>
Inherits QGraphicsEffect.
This class was introduced in Qt 4.6.
| QGraphicsColorizeEffect ( QObject * parent = 0 ) | |
| ~QGraphicsColorizeEffect () | |
| QColor | color () const |
| void | setColor ( const QColor & c ) |
| void | colorChanged ( const QColor & color ) |
| virtual void | draw ( QPainter * painter, QGraphicsEffectSource * source ) |
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.
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 ) |
Constructs a new QGraphicsColorizeEffect instance. The parent parameter is passed to QGraphicsEffect's constructor.
Destroys the effect.
This signal is emitted whenever the effect's color changes. The color parameter holds the effect's new color.
Reimplemented from QGraphicsEffect::draw().
| Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.0-tp1 |