I want to stop labels colliding within my Scene and as a result used this code to check for a collision:-
QGraphicsTextItem *textLabel = new QGraphicsTextItem;
....
addItem(textLabel);
//check for collision
QList<QGraphicsItem*> items = this->items(textLabel>boundingRect(),Qt::IntersectsItemBoundingRect);
I never get any items in the list, yet on screen I can see the collisions. Am I reading the documentation incorrectly?