Hi,

i want to translate a qimage, but no idea how to do it.

with the "transformed function" its not allowed, so i tried the follwoing:

Qt Code:
  1. QImage tmp = tmp.transformed(QImage::trueMatrix(translation, tmp.width(), tmp.height()));
To copy to clipboard, switch view to plain text mode 

so the documentation told me:

http://doc.qt.io/qt-4.8/http://doc.qt.nokia.com/4.7-snapshot/qimage.html#trueMatrix

Returns the actual matrix used for transforming an image with the given width, height and matrix.

When transforming an image using the transformed() function, the transformation matrix is internally adjusted to compensate for unwanted translation, i.e. transformed() returns the smallest image containing all transformed points of the original image. This function returns the modified matrix, which maps points correctly from the original image into the new image.
hope somebody can help me..
wishes