Many Thanks
I think I have solved it by setting the viewbox for the SVG negative, and then using a transform rotate instead of rotate like this.
To Rotate 90 degrees
self.srenderer=self.svgSecond.renderer()
svgRect.setX(-10)
svgRect.setY(-1)
svgRect.setWidth(100)
svgRect.setHeight(100)
self.srenderer.setViewBox(svgRect)
self.svgSecond.setPos(self.centerx-10, self.centery-1)
self.scene.addItem(self.svgSecond)
self.svgSecond.setTransform(QtGui.QTransform().translate(10, 1).rotate(90).translate(-10, -1))
self.svgSecond=QGraphicsSvgItem(self.themeDir+"clock-second-hand.svg",)
self.srenderer=self.svgSecond.renderer()
svgRect=QtCore.QRect()
svgRect.setX(-10)
svgRect.setY(-1)
svgRect.setWidth(100)
svgRect.setHeight(100)
self.srenderer.setViewBox(svgRect)
self.svgSecond.setPos(self.centerx-10, self.centery-1)
self.scene.addItem(self.svgSecond)
self.svgSecond.setTransform(QtGui.QTransform().translate(10, 1).rotate(90).translate(-10, -1))
To copy to clipboard, switch view to plain text mode
Bookmarks