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);
ui.BGgraphicsView->setMatrix(matrix);
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
matrix.translate(50,50);
ui.BGgraphicsView->setMatrix(matrix);
matrix.translate(50,50);
ui.BGgraphicsView->setMatrix(matrix);
To copy to clipboard, switch view to plain text mode
Please help
Bookmarks