I have a custom Widget derived from QFrame. I will need to draw on it very frequently (basically, a picture is updated with every mouse move). I checked the Qt Basic drawing example: They override paintEvent, create a painter and do their drawing (and the painter dies at the end of its lifetime, facing the final cur...ly bracket).I have a custom Widget derived from QFrame. I w