You may try calling QGraphicsScene::invalidate() with the geometry of your button after hiding it. Alternatively make your button embedded into the scene through QGraphicsProxyWidget.
You may try calling QGraphicsScene::invalidate() with the geometry of your button after hiding it. Alternatively make your button embedded into the scene through QGraphicsProxyWidget.
Nope, neither didn't help. However, I noticed that background is drawn badly only if the button is hidden before drawing takes place. If I show and hide the button again it is drawn correctly.
Bookmarks