Hi all,
I have been implementing a Pencil Tool (image editing tool) which has a layer structure similar to the one in Adobe PhotoShop. Each layer contains a QPixmap to draw its content. Therefore, I have used QGraphicsView and QGraphicsPixmapItem to implement layer mechanism.
The problem is that, when drawing on high resolution images, rendering is very slow. I have been using QGraphicsPixmapItem::setPixmap() method for pencil , and it tries to draw all the image again and again for every pencil move. I think it is the main reason. Is there any solution to render a smaller portion of a QGraphisPixmapItem:ixmap() instead of updating all the pixmap?
Any idea is welcome.
Bookmarks