No..I try to explain better...

I've a scene where a put different kind of items:

1) MPGraphicsItem derived from QGraphicsItem (with the lowest zValue);
2) QGraphicsRectItem with intermediate zValue
3) QGraphicsLineItem whit the bigger zValue

The items() returns a list with all the item of a x,y,z position from the bottom to the top...

The problem is this: When I double click on the scene I want to execute one specify method only if on the position x,y,z there is a MPGraphicsItem.

The dynamic cast only cast the item selected with MPGraphicsItem but this action works with other item too (if the last item is a QGraphicsLineItem the cast works and the if(item) returns true).

This cause it's possible that in one x,y,z position there is only a QGraphicsLineItem.

I need to be sure that the QGraphicsItem that the mouseDoubleClickEvent returns it's a MPGraphicsItem...this also after the dynamic cast...

I hope that this explanation is more clear.