geometry of QGraphicsRectItem
Unsolved
General and Desktop
-
I have a qgraphicsRectItem drawn on a qgraphicsScene. With mouse events, it's being moved over the scene, resized and repositioned. How can I get the geometry of that qgraphicsRectItem boundingRect, pos wrt scene on mouseReleaseEvent? There's a image on scene, and a boundingrect of qgraphicsRectItem is drawn on the scene, then i need to get qrect for cropping that portion of image within the bounding rect.
-
You can use
sceneBoundingRect()
andscenePos()
of theQGraphicsRectItem
get the boundingRect and pos in the scene coordinate