Hi there.
Can we cast a QList<T> with qobject_cast?
Hi there.
Can we cast a QList<T> with qobject_cast?
To do what?
Actually, I'm trying to use collidingItems fonction and it returns a list of QGraphicsItem* , in another hand I've defined a class named Trame, which Inherits from QObject and QGraphicsItem.
Now, I want to get all colliding objects of type Trame with an other object of the same type?
1) Use qgraphicsitem_cast
2) You will have to iterate over the list.
It's nice to be important but it's more important to be nice.
Bookmarks