Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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