Re: Retaining drawing across paintevents

2014-01-01 Thread Chris Angelico
On Thu, Jan 2, 2014 at 1:53 AM, wrote: > I find that I have to re-paint the whole widget every time I call an > update(), as I have create a new QPainter() instance. Is there a way to > update only a small part of the widget, while retaining the rest of the > widget? In general, it would help

Retaining drawing across paintevents

2014-01-01 Thread angedward3
Hi all, I am sub-classing the paintevent at the moment to create a 2D plot. I find that I have to re-paint the whole widget every time I call an update(), as I have create a new QPainter() instance. Is there a way to update only a small part of the widget, while retaining the rest of the widget