Search code examples
qtcachingqpainter

QPainter Cache Possible?


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 ?


Solution

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