QGraphicsRectItem does not inherit QObject.
Thanks for answer.
I just add the QObject in the class:
class Menu: public QObject, public QGraphicsRectItem
Now compile with no errors, but doesn't work.
The menu stay in the same position.
Why would anything change position? Did you read the animation framework docs before trying to use it?
Bookmarks