You can display the image in QGraphicsView. To this end, you can write a QGraphicsItem that has two QImage pointers as member variables. One of them can be used as a buffer, so new bytes can be written to the buffer. Another image can be used for rendering. Paint () function should be lower
painter->drawImage(0,0,*mRenderImage);
source share