Morea
25th November 2006, 11:31
Hi.
If there are several items at a point, the item that will be returned with the QGraphicsScene::itemAt function will be the one with the highest zValue, right?
But what if there is two QGraphicsItems, call them A and B where A is parent to B and B has lower zValue, which one will be returned?
In this situation I would really like B to be returned, if itemAt does not do this, how do you do it then?
If there are several items at a point, the item that will be returned with the QGraphicsScene::itemAt function will be the one with the highest zValue, right?
But what if there is two QGraphicsItems, call them A and B where A is parent to B and B has lower zValue, which one will be returned?
In this situation I would really like B to be returned, if itemAt does not do this, how do you do it then?