It might be caused by some rounding errors, since you perform all calculations on integers. Another possibility is that the "active" point of the cursor is in a bit different place than you would expect.
It might be caused by some rounding errors, since you perform all calculations on integers. Another possibility is that the "active" point of the cursor is in a bit different place than you would expect.
If rounding errors were indeed the case, then (and that seems to make sense), how could I best circumvent the problem? I can use floats instead of integers, but I can only use QPainter::setWindow() with a QRect, not a QRectF, and this seems to be the underlying hindrance since I set the QTransform with a call to QPainter::combinedTransform() shortly thereafter.
Bookmarks