void test()
{
QRect selection
(5,
5,
2,
2);
#if QT3
QWMatrix m;
m.scale(2,5);
m.invert();
#else
m.scale(2,5);
m.inverted();
#endif
QRect r
= m.
mapRect(selection
);
}
void test()
{
QRect selection(5,5,2,2);
#if QT3
QWMatrix m;
m.scale(2,5);
m.invert();
#else
QMatrix m;
m.scale(2,5);
m.inverted();
#endif
QRect r = m.mapRect(selection);
}
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.
Bookmarks