1 another query.

I have added QGraphicsview in Vertical Layout to view an image.

Now I want to rotate this image as well as move it vertically up and down.

I am able to rotate it using code

matrix.rotate(i);
Qt Code:
  1. ui.BGgraphicsView->setMatrix(matrix);
To copy to clipboard, switch view to plain text mode 

but not able to move it up and down

I use below code for translating
Qt Code:
  1. matrix.translate(50,50);
  2. ui.BGgraphicsView->setMatrix(matrix);
To copy to clipboard, switch view to plain text mode 

Please help