Reading part of svg file in qt

I need to read part of the .svg file. There are many graphs associated with values ​​in the .svg file. Is there a way that each chart can be represented as a tab in Qt? Thank you.

+3
source share
1 answer

QSvgRendererallows you to display certain elements from the SVG according to their idinside the widget. Managing tabs is a completely different matter and you will need to do this usingQTabWidget

EDIT

I am sure that the identifier they are talking about here is the identifier of the XML element in SVG-xml. eg:

<symbol overflow="visible" id="glyph0-0"> ... </symbol>

if your SVG does not have identifiers, you will have to change it to include them.

+1
source

Source: https://habr.com/ru/post/1753152/


All Articles