PDA

View Full Version : PopupMenu for several QGraphicsItems



jobrandt
10th August 2009, 15:00
I have placed several QGraphicItems on a QGraphicsScene. The program is based on the Qt-chip example. With the left mousebutton(rubberband) i can select several items. But if i now press the right mousebutton(to invoke the menu) all items are deselected expect the item under the mouse.
If i have moved one item and tried the same again all items keep the selection after pressing right mousebutton. This is the behaviour that i want.
Any ideas how to get the second behaviour without moving an item?