[Qt-interest] paint one image over other continously
Andre Somers
andre at familiesomers.nl
Fri Sep 25 10:42:15 CEST 2009
Rahulkumar Tibdewal wrote:
> It's not a question of calling update(). Update will simply invoke paint event again. I want my previous image should not get overwritten.
>
Don't paint the picture directly on the screen, but paint it to an
internal buffer QImage or QPixMap. If a new image arives, paint it on
this buffer at the correct coordinates using QPainter::drawImage. Then
trigger an update to redraw your buffer image to the screen.
André
P.S. I hope you know what you are doing. There are some very nice
solutions already for this kind of thing. Maybe you can simply integrate
one of those instead. VNC and NoMachine NX come to mind...
More information about the Qt-interest-old
mailing list