hi friends.
i want to get currently visible (showing) item(s) in QGraphicsScene and if number of items is more than one determine which one's showing part is more than others.
sorry for my bad english
hi friends.
i want to get currently visible (showing) item(s) in QGraphicsScene and if number of items is more than one determine which one's showing part is more than others.
sorry for my bad english
You can ask the view which items fall inside its viewport rectangle:
Qt Code:
QList<QGraphicsItem *> items = view->items(view->viewport->rect());To copy to clipboard, switch view to plain text mode
I am not familiar enough with the API to answer the amount of intersection aspect of this question.
Santa.fat (29th October 2015)
Bookmarks