I'd like to listing all my items in the scene whose bounding rectangle is fully contained inside the scene rect area, and i'd like to have them listed in descending z order.....
From the reference document i found:
1)
QList<QGraphicsItem *> QGraphicsScene::items ( const QPointF & pos ) const;
To copy to clipboard, switch view to plain text mode
Returns all visible items at position pos in the scene. The items are listed in descending Z order
2)
QList<QGraphicsItem
*>
QGraphicsScene::items ( const QRectF & rectangle, Qt
::ItemSelectionMode mode
= Qt
::IntersectsItemShape ) const
QList<QGraphicsItem *> QGraphicsScene::items ( const QRectF & rectangle, Qt::ItemSelectionMode mode = Qt::IntersectsItemShape ) const
To copy to clipboard, switch view to plain text mode
Returns all visible items that, depending on mode, are either inside or intersect with the specified rectangle;
How can i obtain my behaviour???
Bookmarks