Hi Guys
First post here.
I'm developing a Qt version of the Cairo Clock for the Nokia N900, and I have a rendering problem with certain SVG Files inside a QGraphicsview.
Many of the SVG Themefiles have some part of the clock hands set outside of the document as the center of the hand is set to (0,0) in the document.
here is a picture of the file
When I get the bounding rectangle for the item, it gives me the size of the document from (0,0) with a width and height of the document, in this case its 100x100.
I assume that that Qt does not know that the back end and top half of the clockhand is there, and I get clipping of the hand when it is rendered. If I zoom right in the whole of the clock hand is rendered, but zoom out it looses the back end of the clock hand.
Here is a picture of the problem
Here is a picture of it zoomed in
So I assume it has read the whole of the file in, but I just need to tell Qt that the bounding box is a little larger to the negative, ie a negative start point, but I cant for the life of me change it.
I am using python and PyQt like this, but it does not change it.
Qt Code:
self.svgSecond.boundingRect().setX(-10)To copy to clipboard, switch view to plain text mode
The problem is on both my N900 and my Linux OpenSuse dev machine.
Any clues of where to go from here much appreciated.
Bookmarks