QT4 How to blur QPixmap image?

前端 未结 6 2084
遥遥无期
遥遥无期 2021-01-06 02:21

QT4 How to blur QPixmap image?

I am looking for something like one of the following:

Blur(pixmap); 
painter.Blur(); 
painter.Blur(rect);
         


        
6条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-06 02:44

    A Gaussian blur is a simple way to create a blurring effect.

    Edit: And lo, I came across Qt's QGraphicsBlurEffect. Introduced in Qt 4.6, it seems to do exactly what you want.

提交回复
热议问题