fix: when copy pixmap, keep the alpha channel
This commit is contained in:
parent
3a6a4cbc68
commit
a694c2b037
|
@ -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());
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user