akiross
2nd April 2011, 17:14
Hello,
from documentation
QList<QGraphicsItem *> QGraphicsScene::selectedItems () const
Returns a list of all currently selected items. The items are returned in no particular order.
but I need to track the selection order if user selects items individually (or any order if uses rubber band). What shall I change to achieve this behavior?
I was thinking to reimplement mousePressEvent() and track of clicked items, but since QGraphicsScene already handles selections, I prefer to do as less damage as possible to the current behavior :)
Any help is welcome
Thanks in advance
~Aki
from documentation
QList<QGraphicsItem *> QGraphicsScene::selectedItems () const
Returns a list of all currently selected items. The items are returned in no particular order.
but I need to track the selection order if user selects items individually (or any order if uses rubber band). What shall I change to achieve this behavior?
I was thinking to reimplement mousePressEvent() and track of clicked items, but since QGraphicsScene already handles selections, I prefer to do as less damage as possible to the current behavior :)
Any help is welcome
Thanks in advance
~Aki