You will have to build a second list, casting each base class pointer to the derived class pointer, and discarding those that do not cast. If they are QGraphicsItem objects then you can use qgraphicsitem_cast. I would not use static_cast unless you can guarantee all the items in the scene are of the one type, and even then...
Bookmarks