QGraphicsBlurEffect

Inheritance diagram of QGraphicsBlurEffect

Synopsis

Functions

def blurHints ()
def blurHintsChanged (hints)
def blurRadius ()
def blurRadiusChanged (blurRadius)
def operator= (arg__1)
def setBlurHints (hints)
def setBlurRadius (blurRadius)

Detailed Description

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 QGraphicsBlurEffect.setBlurRadius() function. Use QGraphicsBlurEffect.setBlurHints() to choose the blur hints.

By default, the blur radius is 5 pixels.

../../_images/graphicseffect-blur.png
class PySide.QtGui.QGraphicsBlurEffect([parent=0])
Parameter:parent – QObject

Constructs a new QGraphicsBlurEffect instance. The parent parameter is passed to QGraphicsEffect ‘s constructor.

QGraphicsBlurEffect.BlurHint

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.

Constant Description
QGraphicsBlurEffect.PerformanceHint Indicates that rendering performance is the most important factor, at the potential cost of lower quality.
QGraphicsBlurEffect.QualityHint Indicates that rendering quality is the most important factor, at the potential cost of lower performance.
QGraphicsBlurEffect.AnimationHint 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.
QGraphicsBlurEffect.blurHints()
Return type:BlurHints

This property holds the blur hint of the effect..

Use the PerformanceHint hint to say that you want a faster blur, the QualityHint hint to say that you prefer a higher quality blur, or the AnimationHint when you want to animate the blur radius.

By default, the blur hint is PerformanceHint .

QGraphicsBlurEffect.blurHintsChanged(hints)
Parameter:hints – BlurHints
QGraphicsBlurEffect.blurRadius()
Return type: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.

QGraphicsBlurEffect.blurRadiusChanged(blurRadius)
Parameter:blurRadius – qreal
QGraphicsBlurEffect.operator=(arg__1)
Parameter:arg__1 – QGraphicsBlurEffect
Return type:QGraphicsBlurEffect
QGraphicsBlurEffect.setBlurHints(hints)
Parameter:hints – BlurHints

This property holds the blur hint of the effect..

Use the PerformanceHint hint to say that you want a faster blur, the QualityHint hint to say that you prefer a higher quality blur, or the AnimationHint when you want to animate the blur radius.

By default, the blur hint is PerformanceHint .

QGraphicsBlurEffect.setBlurRadius(blurRadius)
Parameter: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.