From 4eefc618bc82ac266d890d41af266bc7ab9b0116 Mon Sep 17 00:00:00 2001 From: Paul Olav Tvete <paul.tvete@qt.io> Date: Tue, 22 May 2018 16:07:53 +0200 Subject: [PATCH] Can't fill pixmap with contents of widget anymore Use a transparent pixmap instead, since Qt supports that now. --- t14/cannon.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t14/cannon.cpp b/t14/cannon.cpp index 0a62c29..1f2f32d 100644 --- a/t14/cannon.cpp +++ b/t14/cannon.cpp @@ -202,7 +202,7 @@ void CannonField::paintCannon( QPainter *p ) QPixmap pix( cr.size() ); QPainter tmp; - pix.fill( this, cr.topLeft() ); + pix.fill( Qt::transparent ); tmp.begin( &pix ); tmp.setBrush( Qt::blue ); -- GitLab