@pkohut I actually figured it out before I looked at this. I basically did exactly what you suggested. I forgot to set the new scaled Rectangle's center to the old Rectangle's center. The scaled rectangle is used to map points to the pixmap. I was mapping to a rectangle at the wrong position, Doh! When I called
tmp.moveCenter(m_realRect.center());
QRectF tmp(x,y,w,h);
tmp.moveCenter(m_realRect.center());
To copy to clipboard, switch view to plain text mode
and then mapped the points to this rectangle, everything looked exactly as it was supposed to.
Bookmarks