![]() |
Home · All Classes · All Functions · Overviews |
The QGraphicsBlurEffect class provides a blur effect. More...
#include <QGraphicsBlurEffect>
Inherits QGraphicsEffect.
This class was introduced in Qt 4.6.
QGraphicsBlurEffect ( QObject * parent = 0 ) | |
~QGraphicsBlurEffect () | |
Qt::RenderHint | blurHint () const |
int | blurRadius () const |
virtual QRectF | boundingRectFor ( const QRectF & rect ) const |
void | setBlurHint ( Qt::RenderHint hint ) |
void | setBlurRadius ( int blurRadius ) |
void | blurHintChanged ( Qt::RenderHint hint ) |
void | blurRadiusChanged ( int radius ) |
virtual void | draw ( QPainter * painter, QGraphicsEffectSource * source ) |
The QGraphicsBlurEffect class provides a blur effect.
A blur effect blurs the source. This effect is useful for reducing details, such as when the source loses focus and you want to draw attention to other elements. The level of detail can be modified using the setBlurRadius() function. Use setBlurHint() to choose the quality or performance blur hints.
By default, the blur radius is 5 pixels.
See also QGraphicsDropShadowEffect, QGraphicsPixelizeEffect, QGraphicsGrayscaleEffect, QGraphicsColorizeEffect, and QGraphicsOpacityEffect.
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 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 radius ) |
Constructs a new QGraphicsBlurEffect 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 radius parameter holds the effect's new blur radius.
Reimplemented from QGraphicsEffect::boundingRectFor().
Reimplemented from QGraphicsEffect::draw().
Copyright © 2009 Nokia Corporation and/or its subsidiary(-ies) | Trademarks | Qt 4.6.0 |