QPainter painter; QImage image; painter.drawPixmap(QRectF(x,y,w,h),QPixmap::fromImage(image),QRectF());