Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
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?
使用 QPainter 绘制图像。
QPainter painter( &targetImage ); painter.drawImage( ... );
来自 Qt 助手:“改用 copy() 或 QPainter::drawImage()。”