PDA

View Full Version : QGraphicsscene. How to ignore some item.



Andre4e
26th February 2012, 21:26
I want that when i call "collidingItems()" and "items" function in a qgraphicsscene, some item inside it are ignored and no processing because
are only animation items

wysota
26th February 2012, 23:01
foreach(QGraphicsItem *item, collidingItems(...)){
if(item == itemIWantToIgnore)
continue;
doSomethingWith(item);
}

Andre4e
26th February 2012, 23:30
thanks for solution! :)