I'm using a QPainter to get some graphics on a window. Unfortunately every time the paintEvent()
function is called, the whole window is cleared. How can I draw without clearing? I.e. how do I leave the stuff from previous paint event untouched?
I'm using Qt4