PDA

View Full Version : Grabbing qrubberband from qgraphicsview rubberband drag



grabalon
17th May 2010, 21:08
I have a qgraphicsScene that is populated by several large images arranged in a mossaic. I need to be able to get a sub-image as defined by a user's selection. It seemed that the qrubberband would be the best way to get the user's selection. It also seems that the qrubberband is used in the rubberband drag mode built into the qgraphics view. Is there any way to get the QRect selected by the QRubberband used in the drag mode before letting it select items on the scene?

grabalon
18th May 2010, 02:15
Solved:
QGraphicsScene::selectionArea().boundingRect()