5

What is the recommended method of copying one QImage into another at a particular position in Qt4?

QImage::bitblt was removed in Qt4.

Does the QImage now need to be converted to a PixMap and back?

4

2 回答 2

6

使用 QPainter 绘制图像。

QPainter painter( &targetImage );

painter.drawImage( ... );
于 2010-08-02T02:53:05.033 回答
4

来自 Qt 助手:“改用 copy() 或 QPainter::drawImage()。”

于 2010-08-03T15:58:09.167 回答