内容表

上一话题

QGraphicsAnchorLayout

下一话题

QGraphicsColorizeEffect

QGraphicsBlurEffect

QGraphicsBlurEffect class provides a blur effect. 更多

Inheritance diagram of PySide2.QtWidgets.QGraphicsBlurEffect

4.6 版新增。

概要

函数

信号

详细描述

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.

../../_images/graphicseffect-blur.png
class QGraphicsBlurEffect ( [ parent=None ] )
param parent

QObject

构造新 QGraphicsBlurEffect instance. The parent 参数会被传递给 QGraphicsEffect ‘s constructor.

PySide2.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.

常量

描述

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.

PySide2.QtWidgets.QGraphicsBlurEffect. blurHints ( )
返回类型

BlurHints

另请参阅

setBlurHints()

PySide2.QtWidgets.QGraphicsBlurEffect. blurHintsChanged ( hints )
参数

hints BlurHints

PySide2.QtWidgets.QGraphicsBlurEffect. blurRadius ( )
返回类型

qreal

另请参阅

setBlurRadius()

PySide2.QtWidgets.QGraphicsBlurEffect. blurRadiusChanged ( blurRadius )
参数

blurRadius qreal

PySide2.QtWidgets.QGraphicsBlurEffect. setBlurHints ( hints )
参数

hints BlurHints

另请参阅

blurHints()

PySide2.QtWidgets.QGraphicsBlurEffect. setBlurRadius ( blurRadius )
参数

blurRadius qreal

另请参阅

blurRadius()