Originally Posted by curiouscoding 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. Originally Posted by curiouscoding and can qgraphicsitem_cast be used for casting QGraphicPixmapItem or is it only for QGraphicsItem ? A QGraphicsPixmapItem is a QGraphicsItem. So yes. Cheers, _
View Tag Cloud
Forum Rules
Bookmarks