Hi all,

I try to apply blur to an image but nothing seems to happen and can't wrap my head arround whatmight be wrong here:

Qt Code:
  1. QPixmap buffer(image.size());
  2. QGraphicsPixmapItem item(buffer);
  3. QGraphicsBlurEffect effect;
  4. effect.setBlurHints(QGraphicsBlurEffect::QualityHint);
  5. effect.setBlurRadius(5);
  6. item.setGraphicsEffect(&effect);
  7.  
  8. item.pixmap().toImage().save("blur.png");
To copy to clipboard, switch view to plain text mode