Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to resize/scale a QGraphicsSvgItem?
jeevan_reddy last edited by
I have a QGraphicsSvgItem which is currently displayed on the graphics scene. The svg image is rectangular in shape. My requirement is that I need to resize the svg image by clicking on the either sides or top and bottom of the rectangle.
I believe, I need to reimplement QGraphicsSvgItem::mouseMoveEvent(). But I'm not sure how to scale the svg item during the mouse move event along with the bounding rect? I am able to resize the image rect by obtaining the QSvgRenderer's viewBox . Currently the svg image doesn't scale along with the rect.
Any help is apprecited.