I have 2 QImages(img1, img2) loaded in 2 QGraphicsPixmapItem(imgItem1, imgItem2)
Both are loaded in Graphics view
I'm overlaying the images
I want to create a small animation of QGraphicsPixmapItem within the graphicsview, when a button is clicked
such that it imgItem2 starts at rotation = 0 & rotates until a predefined rotation angle within 5seconds
then translates it by a predefined rowOffset and ColumnOffset within 5seconds
I can rotate & translate easily
but how do i create an animation of it with QTimer? QAnimation only works on objects like buttons/... not images?
looked at certain example sourc code, but i'm not winning
Please assist me
A basic example would be highly appreciated
Bookmarks