Details
-
Bug
-
Resolution: Unresolved
-
P2: Important
-
None
-
5.14.0
-
None
Description
I load a simple SVG file with a rectangle.
I change the DOM, setting a different width on the rectangle.
I call the load() method on the QSvgRenderer that is shared across several items.
width is not updated.
The same approach (change the dom, call load() on the renderer) seems to work for other attributes (e.g. style, I am able to change the colors of the rectangle).
A call to renderer()->boundsOnElement(id) before and after the width change returns a rectangle with the correct size (the width is consistent with the change)
Am I missing something?
One more question: why do I have to explicitly call setPos on each item after querying
renderer()->boundsOnElement(id)
instead of having the items automatically positioned as defined in the SVG?