3

I've Pie Shaped widgets that needs extensive paintings. So I want to cache the QPainter Once it have been painted in paintEvent. and reuse it latter. Is there any direct or hacky way of doing this ?

Neel Basu
  • 12,638
  • 12
  • 82
  • 146

1 Answers1

4

Use a QPixmap as a cache, QPainter can use it to paint onto directly as well.

cmannett85
  • 21,725
  • 8
  • 76
  • 119