Blur effect over a QWidget in Qt

后端 未结 3 1341
野趣味
野趣味 2020-11-28 12:35

Is there any way to blur a widget in Qt? For instance, supose I want to create a \'Loading...\' dialog and blur the background (not active window).

3条回答
  •  有刺的猬
    2020-11-28 12:51

    You can refer to this article if you want to apply blur effect on an image. After you create your blurred image you can draw it in QWidget::paintEvent() function.

提交回复
热议问题