fix: when copy pixmap, keep the alpha channel

This commit is contained in:
Gary Wang 2020-01-05 14:38:39 +08:00
parent 3a6a4cbc68
commit a694c2b037

View File

@ -63,6 +63,7 @@ void GraphicsScene::showGif(const QString &filepath)
QPixmap GraphicsScene::renderToPixmap()
{
QPixmap pixmap(sceneRect().toRect().size());
pixmap.fill(Qt::transparent);
QPainter p(&pixmap);
render(&p, sceneRect());