Qt Code:
  1. void test()
  2. {
  3. QRect selection(5,5,2,2);
  4.  
  5. #if QT3
  6. QWMatrix m;
  7. m.scale(2,5);
  8. m.invert();
  9. #else
  10. m.scale(2,5);
  11. m.inverted();
  12. #endif
  13.  
  14. QRect r = m.mapRect(selection);
  15. }
To copy to clipboard, switch view to plain text mode 

Qt 3.3.2
QRect r comes out as:
x1=10
y1=25
x2=12
y2=30

Qt 4.1.2
QRect r comes out as:
x1=10
y1=25
x2=13
y2=34


I'm converting an application from 3.3.2 to 4.1.2 and this seems to be where my problem is coming from.

Does anyone know why this is different and/or how i can fix it.
Thank you.