![]() |
Home · All Classes · All Functions · Overviews |
The QGraphicsBloomEffect class provides a bloom/glow effect. More...
#include <QGraphicsBloomEffect>
Inherits QGraphicsEffect.
This class was introduced in Qt 4.6.
QGraphicsBloomEffect ( QObject * parent = 0 ) | |
~QGraphicsBloomEffect () | |
Qt::RenderHint | blurHint () const |
int | blurRadius () const |
int | brightness () const |
qreal | strength () const |
virtual QRectF | boundingRectFor ( const QRectF & rect ) const |
void | setBlurHint ( Qt::RenderHint hint ) |
void | setBlurRadius ( int blurRadius ) |
void | setBrightness ( int brightness ) |
void | setStrength ( qreal strength ) |
void | blurHintChanged ( Qt::RenderHint hint ) |
void | blurRadiusChanged ( int blurRadius ) |
void | brightnessChanged ( int brightness ) |
void | strengthChanged ( qreal strength ) |
virtual void | draw ( QPainter * painter, QGraphicsEffectSource * source ) |
The QGraphicsBloomEffect class provides a bloom/glow effect.
A bloom/glow effect adds fringes of light around bright areas in the source.
See also QGraphicsDropShadowEffect, QGraphicsBlurEffect, QGraphicsPixelizeEffect, QGraphicsGrayscaleEffect, and QGraphicsColorizeEffect.
This property holds the blur hint of the effect.
Use the Qt::PerformanceHint hint to say that you want a faster blur, and the Qt::QualityHint hint to say that you prefer a higher quality blur.
When animating the blur radius it's recommended to use Qt::PerformanceHint.
By default, the blur hint is Qt::PerformanceHint.
Access functions:
Qt::RenderHint | blurHint () const |
void | setBlurHint ( Qt::RenderHint hint ) |
Notifier signal:
void | blurHintChanged ( Qt::RenderHint hint ) |
This property holds the blur radius in pixels 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 blurRadius ) |
See also strength() and brightness().
This property holds the brightness of the glow.
The value should be in the range of 0 to 255, where 0 is dark and 255 is bright.
By default, the brightness is 70.
Access functions:
int | brightness () const |
void | setBrightness ( int brightness ) |
Notifier signal:
void | brightnessChanged ( int brightness ) |
See also strength() and blurRadius().
This property holds the strength of the effect.
A strength 0.0 equals to no effect, while 1.0 means maximum glow.
By default, the strength is 0.7.
Access functions:
qreal | strength () const |
void | setStrength ( qreal strength ) |
Notifier signal:
void | strengthChanged ( qreal strength ) |
Constructs a new QGraphicsBloomEffect instance. The parent parameter is passed to QGraphicsEffect's constructor.
Destroys the effect.
This signal is emitted whenever the effect's blur hint changes. The hint parameter holds the effect's new blur hint.
This signal is emitted whenever the effect's blur radius changes. The blurRadius parameter holds the effect's new blur radius.
Reimplemented from QGraphicsEffect::boundingRectFor().
This signal is emitted whenever the effect's brightness changes. The brightness parameter holds the effect's new brightness.
Reimplemented from QGraphicsEffect::draw().
This signal is emitted whenever the effect's strength changes. The strength parameter holds the effect's new strength.
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.0 |