BitBlt in Qt4?
Asked Answered
M

2

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?

Maziemazlack answered 2/8, 2010 at 1:25 Comment(0)
P
6

Use QPainter to draw to your image.

QPainter painter( &targetImage );

painter.drawImage( ... );
Pathogen answered 2/8, 2010 at 2:53 Comment(0)
M
4

From Qt Assistant: "Use copy() or QPainter::drawImage() instead."

Marguritemargy answered 3/8, 2010 at 15:58 Comment(1)
See also here for QT-4 and here for QT-5.Headcheese

© 2022 - 2024 — McMap. All rights reserved.