Andre Poenitz a écrit :
On Thu, Mar 16, 2006 at 10:50:41AM +0100, Abdelrazak Younes wrote:
I thought even painting into a pixmap should only be done in a
paintEvent(). The pixmap is located on the server side after all...
I don't think so... or maybe I don't understand what you mean by "server
side".
The X server.
A 'pixmap' is located on the X server, whereas an 'image' is located on
the X client. So pixel manipulation is cheap on images, display is
(reaonably) cheap for pixmaps. And I though (but am not sure) that
one accesses the server only in paintEvents nowadays.
I think there is some "qui-proquo" here. What I call the backing pixmap
in QWorkArea is a QPixmap which is an off-screen, pixel-based paint
device. So it is really an image even if it rely in windowing system, in
this case the X server. The painting of this image into screen handled
by the Xserver is indeed done in QWorkArea::paintEvent() and that is the
one and only painting of the buffer view onto the screen. This was just
for clarification and I think we agree on everything except the fact
that QPixmap can be painted into at any time.
Abdel.
Andre'