View Full Version : QPainter immediate drawing outside paint event

23rd February 2011, 00:46
Is there anyway to draw on a widget outside a painter event? QPainter seems usable only in response to paint event.

In Windows programming, one can simply obtain the client DC of a window and draw whatever you want immediately. MFC has a CClientDC class. This kind of immediate drawing is useful in some cases where custom drawing is needed during a drag & drop operation.

Thanks for sharing any ideas.

23rd February 2011, 07:39
I think, this might help,