|QGraphicsBlurEffect(QObject * parent = 0)|
Reimplemented Public Functions
|virtual QRectF||boundingRectFor(const QRectF & rect) const|
Reimplemented Protected Functions
|virtual void||draw(QPainter * painter)|
Additional Inherited Members
- 7 static public members inherited from QObject
- 7 protected functions inherited from QGraphicsEffect
- 8 protected functions inherited from QObject
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 setBlurHints() to choose the blur hints.
By default, the blur radius is 5 pixels. The blur radius is specified in device coordinates.
Member Type Documentation
This enum describes the possible hints that can be used to control how blur effects are applied. The hints might not have an effect in all the paint engines.
|Indicates that rendering performance is the most important factor, at the potential cost of lower quality.|
|Indicates that rendering quality is the most important factor, at the potential cost of lower performance.|
|Indicates that the blur radius is going to be animated, hinting that the implementation can keep a cache of blurred verisons of the source. Do not use this hint if the source is going to be dynamically changing.|
This enum was introduced or modified in Qt 4.6.
The BlurHints type is a typedef for QFlags<BlurHint>. It stores an OR combination of BlurHint values.
blurHints : BlurHints
This property holds the blur hint of the effect.
By default, the blur hint is PerformanceHint.
blurRadius : qreal
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.
The radius is given in device coordinates, meaning it is unaffected by scale.
Member Function Documentation
QGraphicsBlurEffect::QGraphicsBlurEffect(QObject * parent = 0)
Destroys the effect.
Reimplemented from QGraphicsEffect::boundingRectFor().
[virtual protected] void QGraphicsBlurEffect::draw(QPainter * painter)
Reimplemented from QGraphicsEffect::draw().
© 2016 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.