mouse selection of overlapping ellipses
I am drawing ellipses using Graphics item in a window (with image in background) and aim to select ellipses using mouse clicks. However, it is not possible for me to select ellipses when they are overlapping. For example, if several ellipses overlap, I can only select the one which is bigger, not the one which are smaller and are (supposedly) inside the bigger ellipse. Can anyone provide some suggestions?
The problem is somewhat related to this http://www.qtcentre.org/threads/3737...o-mouse-events but I can not understand the suggestion on this forum well.
Re: mouse selection of overlapping ellipses
I don't have experience of this, but http://doc.qt.nokia.com/latest/qgrap...ousePressEvent says:
"If you call QEvent::ignore() on event, this item will lose the mouse grab, and event will propagate to any topmost item beneath."
So, in principle the graphics items behave differently than widgets and should not have any problems, except the user interface issue of how to handle the clicking further down into the stack until the correct object is found.