- qtgui
- qtdbus
- qtwidgets
- qtcore
- dtkcore
- qsettingbackend_zh
- dobject_zh
- abstractappender_zh
- abstractstringappender_zh
- dfilewatcher_zh
- outputdebugappender_zh
- dsettingsbackend_zh
- drecentmanager_zh
- ddesktopentry_zh
- consoleappender_zh
- gsettingsbackend_zh
- dsettingsgroup_zh
- dlogmanager_zh
- fileappender_zh
- dsettings_zh
- dfilesystemwatcher_zh
- dfilewatchermanager_zh
- dbasefilewatcher_zh
- dtkgui
- dtkwidget
- dviewitemaction_zh
- dstandarditem_zh
- dfiledialog_zh
- dclipeffectwidget_zh
- danchors_zh
- dgraphicsclipeffect_zh
- dstyle_zh
- dcoloredprogressbar_zh
- dbuttonboxbutton_zh
- dlabel_zh
- dtiplabel_zh
- darrowlinedrawer_zh
- daboutdialog_zh
- dsettingswidgetfactory_zh
- dsearchcombobox_zh
- dcrumbedit_zh
- dcommandlinkbutton_zh
- dsettingsdialog_zh
- dwindowoptionbutton_zh
- dspinner_zh
- dsimplelistview_zh
- dwaterprogress_zh
- dmainwindow_zh
- dhidpihelper_zh
- dslider_zh
- dpasswordedit_zh
- danchorinfo_zh
- dmpriscontrol_zh
- darrowbutton_zh
- dbackgroundgroup_zh
- dcircleprogress_zh
- dwarningbutton_zh
- dwindowclosebutton_zh
- dvideowidget_zh
- dfilechooseredit_zh
- dblureffectwidget_zh
- darrowrectangle_zh
- dsearchedit_zh
- dfloatingmessage_zh
- dswitchlineexpand_zh
- dtabbar_zh
- dlineedit_zh
- danchorsbase_zh
- dstylediconengine_zh
- dwindowmaxbutton_zh
- dpageindicator_zh
- dsuggestbutton_zh
- dapplicationsettings_zh
- dtooltip_zh
- dwindowminbutton_zh
- ddrawer_zh
- dtitlebar_zh
- dsimplelistitem_zh
- dpicturesequenceview_zh
dblureffectwidget_zh
Class::DBlurEffectWidget
暂无该属性
Detailed Description
用于实现主窗口或控件背景的实时模糊效果。 分为主窗口模糊 DBlurEffectWidget::BehindWindowBlend 和控件模糊 DBlurEffectWidget::InWindowBlend DBlurEffectWidget::InWindowBlend 这两种不同的模式,主窗口模糊效果依赖于窗口管理器的实现,目前仅支持 deepin-wm 和 kwin, 可以使用DWindowManagerHelper::hasBlurWindow 判断当前运行环境中的窗口管理器是否支持 模糊特效,使用 DPlatformWindowHandle::setWindowBlurAreaByWM 设置主窗口背景的模糊 区域。如果在一个主窗口内同时使用了多个 DBlurEffectWidget 控件,则在更新主窗口模糊区域 时会自动将所有控件的区域合并到 QVector 或者 QList (如果有任意一个控件设置了 DBlurEffectWidget::radius 属性)中统一设置。 控件模糊效果的原理和 DClipEffectWidget 类似,在控件绘制时先使用 QPlatformBackingStore::toImage() 获取主窗口上控件对应区域内已经绘制的内容,此时获取的内容为此控件下层控件所绘制的内容,将 获得的 QImage 对象使用软件算法进行模糊处理,然后再将模糊之后的图像绘制到控件上。由于实现 原理限制,不适用于主窗口为OpenGL绘制模式的窗口(如:QOpenGLWindow ),且控件下面使用 OpenGL绘制的内容也生成模糊的效果(如 QOpenGLWidget )
DBlurEffectWidget::Q_PROPERTY
int Q_PROPERTY(int )
DBlurEffectWidget::~DBlurEffectWidget
~DBlurEffectWidget()
DBlurEffectWidget::radius
int radius() const
DBlurEffectWidget::mode
int mode() const See also setMode()
DBlurEffectWidget::blendMode
int blendMode() const See also setBlendMode()
DBlurEffectWidget::blurRectXRadius
int blurRectXRadius() const See also setBlurRectXRadius()
DBlurEffectWidget::blurRectYRadius
int blurRectYRadius() const See also setBlurRectYRadius()
DBlurEffectWidget::isFull
bool isFull() const
DBlurEffectWidget::isFull Returns true 窗口占据了整个模糊区域,反之为false
DBlurEffectWidget::blurEnabled
bool blurEnabled() const
DBlurEffectWidget::blurEnabled Returns true 模糊区域可伸缩调整 See also setBlurEnabled()
DBlurEffectWidget::maskColor
int maskColor() const See also setMaskColor()
DBlurEffectWidget::maskAlpha
quint8 maskAlpha() const See also setMaskAlpha()
DBlurEffectWidget::setMaskPath
void setMaskPath(const int &path)
设置模糊区域的路径,当未调用过此接口时,模糊区域为整个控件所占据的空间,此路径坐标原点为控件左上角 path Warning: 设置自定义路径之后,控件大小改变时不会再自动调整模糊区域大小 UnknownCommand DBlurEffectWidget::blurRectXRadius DBlurEffectWidget::blurRectYRadius
DBlurEffectWidget::setSourceImage
void setSourceImage(const int &image, bool autoScale)
DBlurEffectWidget::setSourceImage image**autoScale Warning: UnknownCommand
DBlurEffectWidget::setMode
void setMode(int mode)
DBlurEffectWidget::setBlendMode
void setBlendMode(int blendMode)
DBlurEffectWidget::setBlurRectXRadius
void setBlurRectXRadius(int blurRectXRadius)
DBlurEffectWidget::setBlurRectYRadius
void setBlurRectYRadius(int blurRectYRadius)
DBlurEffectWidget::setMaskAlpha
void setMaskAlpha(quint8 alpha)
DBlurEffectWidget::setMaskColor
void setMaskColor(int maskColor)
DBlurEffectWidget::setFull
void setFull(bool full)
DBlurEffectWidget::setBlurEnabled
void setBlurEnabled(bool blurEnabled)
DBlurEffectWidget::updateBlurSourceImage
void updateBlurSourceImage(const int &ren)
DBlurEffectWidget::modeChanged
void modeChanged(int mode)
DBlurEffectWidget::blendModeChanged
void blendModeChanged(int blendMode)
DBlurEffectWidget::blurRectXRadiusChanged
void blurRectXRadiusChanged(int blurRectXRadius)
DBlurEffectWidget::blurRectYRadiusChanged
void blurRectYRadiusChanged(int blurRectYRadius)
DBlurEffectWidget::maskAlphaChanged
void maskAlphaChanged(quint8 alpha)
DBlurEffectWidget::maskColorChanged
void maskColorChanged(int maskColor)
DBlurEffectWidget::fullChanged
void fullChanged(bool full)
DBlurEffectWidget::blurEnabledChanged
void blurEnabledChanged(bool blurEnabled)
DBlurEffectWidget::blurSourceImageDirtied
void blurSourceImageDirtied()
DBlurEffectWidget::DBlurEffectWidget
DBlurEffectWidget(DBlurEffectWidgetPrivate &dd, int *parent)
DBlurEffectWidget::paintEvent
void paintEvent(int *event) override
DBlurEffectWidget::moveEvent
void moveEvent(int *event) override
DBlurEffectWidget::resizeEvent
void resizeEvent(int *event) override
DBlurEffectWidget::showEvent
void showEvent(int *event) override
DBlurEffectWidget::hideEvent
void hideEvent(int *event) override
DBlurEffectWidget::changeEvent
void changeEvent(int *event) override
DBlurEffectWidget::eventFilter
bool eventFilter(int *watched, int *event) override