Save blured label as image
-
Hey guys, i try to put blur filter on image. To achieve this ive tried to code something like this:
@label->setpixmap(myPixmap);
blur->setBlurRadius(20);
blur->setBlurHints(QGraphicsBlurEffect::QualityHint);
label->setGraphicEffect(blur);
QPixmap output = QPixmap(myPixmap.widht(), myPixmap.height());
QPainter painter(&output);
label->render(&painter);
myPixmap.save("test.png");@I get just black picture. If I throw out line where i add graphic effect to label, I get original image (myPixmap).
https://www.dropbox.com/s/nm5vplv5cn5owf2/1.png?dl=0
https://www.dropbox.com/s/7fzjjergc1917ay/2.png?dl=0https://www.dropbox.com/s/j9ukc8pqpmfvsvl/3.png?dl=0
https://www.dropbox.com/s/oguzir9vds57u4h/4.png?dl=0Help me please.
-
Hi, welcome to devnet,
This happens to me on Windows too. Please "report a bug":https://bugreports.qt.io?