PDA

View Full Version : A work flow explanation of QPaint ?



tonnot
5th October 2010, 15:08
I would want to know the work flow of QPaint.
The documentation does not talk about the order of the events.
Anyone can indicate me to some link ?
Thanks

wysota
5th October 2010, 15:51
Could you say what "events" are you referring to? I understand that by "QPaint" you mean QPainter?

tonnot
5th October 2010, 17:10
Yes QPainter:
The events I refer are about what happens during the proccess of paint or update a widget? (and if there is a way of 'play' with some of them)
In particular I want to know if there is a way (an easy way) of to draw the widget avoiding the previous 'clear' or 'erase'.

wysota
5th October 2010, 17:17
So maybe your question should be "how to avoid erasing widget contents during repaint" instead of "a work flow explanation of QPaint"? ;)

Usually if we want something like this, we draw to a pixmap instead of the widget and in the paint event only render the pixmap to the widget.

tonnot
5th October 2010, 17:26
Ok, thank you