QGraphicsColorizeEffect Class Reference

The QGraphicsColorizeEffect class provides a colorize effect.

  1. #include <QGraphicsColorizeEffect>

Inherits: QGraphicsEffect.

This class was introduced in Qt 4.6.

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, and QGraphicsOpacityEffect.

Properties

Toggle detailscolorcolor : QColor

This property holds the color of the effect.

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

Access functions:

Look up this member in the source code.

Toggle detailsstrengthstrength : qreal

This property holds the strength of the effect.

By default, the strength is 1.0. A strength 0.0 equals to no effect, while 1.0 means full colorization.

Access functions:

Look up this member in the source code.

    Public Functions

    Toggle details QGraphicsColorizeEffect

    QGraphicsColorizeEffectQGraphicsColorizeEffect ( QObject *parent=0 ) ( QObject *parent=0 )

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

    Look up this member in the source code.

    Toggle details QGraphicsColorizeEffect

    ~QGraphicsColorizeEffect~QGraphicsColorizeEffect () ()

    Destroys the effect.

    Look up this member in the source code.

    Toggle details void QGraphicsColorizeEffect

    drawdraw ( QPainter *painter ) ( QPainter *painter ) [virtual protected]

    Reimplemented from QGraphicsEffect::draw().

    Look up this member in the source code.

      Signals

      Toggle details void QGraphicsColorizeEffect

      colorChangedcolorChanged ( const QColor &color ) ( const QColor &color ) [signal]

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

      Look up this member in the source code.

      Toggle details void QGraphicsColorizeEffect

      strengthChangedstrengthChanged ( qreal strength ) ( qreal strength ) [signal]

      This signal is emitted whenever setStrength() changes the colorize strength property. strength contains the new strength value of the colorize effect.

      Look up this member in the source code.

        Notes provided by the Qt Community

        No notes