Hi! Is it possible to use QPropertyAnimation with a QGraphicsPixmapItem? I read it is possible by creating a subclass and making it inherit from QObject as well. So, I created it and defined the property like:

Qt Code:
  1. class MyPixmap : public QObject, public QGraphicsPixmapItem {
  2. Q_OBJECT
  3. Q_PROPERTY (qreal rotation READ rotation WRITE setRotation)
  4. ...
To copy to clipboard, switch view to plain text mode 

but when running the animation I get a crash. I made the same for a QGraphicsItem and it worked, but this isn't. Any idea why?
Thanks!