PDA

View Full Version : QGraphicsView rubberband selection



Vladimir
22nd January 2007, 15:16
I'm using QGraphicsView with custom QGraphicsItems (which are currently just ellipses with overloaded boundingBox(), shape() and paint() methods). When dragMode is set to NoDrag simple selection works OK. But when dragMode is set to RubberBandDrag it sometimes misses my clicks (i.e. do not selects item when I single click on it) and Ctrl and Shift modifiers for selecting several items refuses to work. Rubberband selection (when I drag the mouse) works well.
Is it supposed behaviour or I'm doing something wrong ?

wysota
28th January 2007, 12:50
I can't be certain, but this behaviour seems logical.

Bitto
29th January 2007, 21:21
Can you reproduce this problem with the Qt demo app? It uses rubber band dragging with item selection. It is also used as a manual test bed for item selection, and seems to work as designed.