Quote Originally Posted by curiouscoding View Post
I guess because Background is a subclass of QGraphicsPixmapItem, the collidingItems() doesn't work for it.
Not sure why you mean it wouldn't work for pixmap items, they do have a shape.

Quote Originally Posted by curiouscoding View Post
and can qgraphicsitem_cast be used for casting QGraphicPixmapItem or is it only for QGraphicsItem ?
A QGraphicsPixmapItem is a QGraphicsItem. So yes.

Cheers,
_