Use a QTransform to implement MapToPixel transformations