[Qt-interest] QGraphicsPixmapItem setPixmap() problem
hakiim the dream
hakiim35 at hotmail.com
Wed Aug 17 09:14:30 CEST 2011
Hi all,
I have been implementing a Pencil Tool (image editing tool) which uses layers. Therefore, I have used QGraphicsView and QGraphicsPixmapItem for layers.
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::pixmap() instead of updating all the pixmap?
Any idea is welcome.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20110817/9f6f61e6/attachment.html
More information about the Qt-interest-old
mailing list