PDA

View Full Version : How to paint line by line



newqtuser
16th July 2008, 03:17
Folks

Im wondering if anyone could help me, im trying to display image data in a QGraphicsScene im able to display items in the scene properly using QGraphicsItemAnimation and make the items move properly, the items are a simple QPixmapItem. Now i need to receive bitmap data from an external source via a bytestream, i think i will need QByteBitArray for this. But i need to quicky repaint this image data as it streams in and paint it line by line on the scene. All the examples ive seen on the net for doing this show the depricated bitblt() call be used with a memcopy() and are pretty complicated. Do i need to use QImage when for painting line by line? Any help would be appreciated.

jacek
25th July 2008, 23:38
You can't access QPixmap's data. One of the possible solutions is to create your own graphics item with QImage inside.