Please nominate your Qt Champions for 2021! https://forum.qt.io/topic/132134/looking-for-the-2021-qt-champions
QML canvas.save() or Item grabToImage() create a png file with transparent background
Tân Ngọc Đỗ last edited by A Former User
I have a picture drawn on Qml canvas. I want to store that picture by calling canvas.save() or cavas.grabToImage() .
When I tried to save with "png" type , my image have a black background but the image generated with a transparent background like this: https://bugreports.qt.io/browse/QTBUG-44288
Saving to Jpeg or bmp is ok.
Could you please help ?
@Tân-Ngọc-Đỗ Isn't it a bug then ?
Larpon last edited by
I'd be cool if people would vote the bug up