Details
-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
4.6.0, 5.15
-
None
-
3
-
a2446c0eede445eb40905487b1ba7c689aa8baef
-
DaVinci sprint 5
Description
Since ImageItem does not reimplement QGraphicsPixmapItem::type () it returns the same type like QGraphicsPixmapItem, so you cannot reliable use qgraphicsitem_cast<ImageItem *>(item) (just qgraphicsitem_cast<QGraphicsPixmapItem *>(item)).
See also documentation of QGraphicsItem::type () http://doc.trolltech.com/4.6/qgraphicsitem.html#type