Sorry, I forgot to mention that I'm subclassing from QGraphicsPixmapItem.