diff --git a/graphicsscene.cpp b/graphicsscene.cpp index 6b6d582..c02cfff 100644 --- a/graphicsscene.cpp +++ b/graphicsscene.cpp @@ -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());