Check this:
http://doc.trolltech.com/4.5/qgraphicsview.html#dragMode-prop
and you have three types of drag mode supported including rubber band selection mode.
To find out if an item is selected by clicking it or when it comes under rubber band selection region you can use this condition in paint event:
Qt Code:
// draw a rectangle around selected objectTo copy to clipboard, switch view to plain text mode
Bookmarks