This GraphicsView example shows how to implement drag and drop in a QGraphicsItem subclass, as well as how to animate items using QGraphicsItemAnimation and QTimeLine.