PDA

View Full Version : Best practice of copying parts of QPixmaps (copyBlt replacement?)



conti
7th March 2012, 14:47
Hi i need to copy a region of one QPixmap into a region of another QPixmap.
The method i found that does exactly this job is(was) copyBlt() but it is gone in QT4. Is there any replacement for this? What is the best practice to achive the same result?

wysota
7th March 2012, 17:12
Open a painter on the destination pixmap and use QPainter::drawPixmap() passing the region of the original pixmap and the rect of the painter you want to copy the pixmap to.