QGraphicsBlurEffect

The QGraphicsBlurEffect class provides a blur effect. More

Inheritance diagram of PySide6.QtWidgets.QGraphicsBlurEffect

New in version 4.6.

Synopsis

Functions

Detailed Description

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.

class PySide6.QtWidgets.QGraphicsBlurEffect([parent=None])
Parameters

parentPySide6.QtCore.QObject

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

PySide6.QtWidgets.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.

PySide6.QtWidgets.QGraphicsBlurEffect.blurHints()
Return type

BlurHints

See also

setBlurHints()

PySide6.QtWidgets.QGraphicsBlurEffect.blurHintsChanged(hints)
Parameters

hintsBlurHints

PySide6.QtWidgets.QGraphicsBlurEffect.blurRadius()
Return type

float

See also

setBlurRadius()

PySide6.QtWidgets.QGraphicsBlurEffect.blurRadiusChanged(blurRadius)
Parameters

blurRadius – float

PySide6.QtWidgets.QGraphicsBlurEffect.setBlurHints(hints)
Parameters

hintsBlurHints

See also

blurHints()

PySide6.QtWidgets.QGraphicsBlurEffect.setBlurRadius(blurRadius)
Parameters

blurRadius – float

See also

blurRadius()